Re: extract the bitmap pattern of font file.

Discussion in 'C Programming' started by Martijn, Jul 28, 2003.

  1. Martijn

    Martijn Guest

    Richard Bos wrote:
    >> eg. font "times new roman", size=12, text="A" , style=bold
    >> then the progarm will read the *.ttf file and generate the
    >> 00000000
    >> 00010000
    >> 00101000
    >> 01111100
    >> 01000100
    >> 10000010
    >> 00000000

    >
    > It is not that easy. In fact, it is not even anywhere near that easy.
    > True Type fonts, like PostScript fonts, are not bitmaps but outline
    > fonts. You need a rendering engine to create the bitmaps from the
    > description


    Spotato, you might want to take this to one of the
    comp.os.ms-windows.programmer groups, it is entirely off-topic here! But as
    a hint, don't bother creating your own render, but let Windows render this
    for you! If it is not already, install the font using the API and draw to a
    bitmap (either visible or not) - you can extract whatever you need from that
    (maybe make some cropping function).

    Good luck,

    --
    Martijn Haak
    http://www.serenceconcepts.nl
    Martijn, Jul 28, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michael Glavitsch
    Replies:
    1
    Views:
    747
    Roedy Green
    Jul 15, 2003
  2. Oliver Henning

    Getting font file of font

    Oliver Henning, Dec 5, 2004, in forum: Java
    Replies:
    0
    Views:
    327
    Oliver Henning
    Dec 5, 2004
  3. Gandalf

    Masked bitmap from bitmap

    Gandalf, Jan 29, 2004, in forum: Python
    Replies:
    0
    Views:
    569
    Gandalf
    Jan 29, 2004
  4. xqggz
    Replies:
    1
    Views:
    408
    Victor Bazarov
    Jun 19, 2007
  5. mttc
    Replies:
    2
    Views:
    2,371
    Roedy Green
    Jul 3, 2009
Loading...

Share This Page