[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] monochrome bitmaps
From: |
Werner LEMBERG |
Subject: |
Re: [ft] monochrome bitmaps |
Date: |
Wed, 17 Dec 2008 22:52:47 +0100 (CET) |
> Can someone tell me how freetype's monochrome bitmaps are organised
> please. I'm trying to use FT_RENDER_MODE_MONO to generate a 1-bit
> monochrome bitmap using docs/tutorial/example.c program. I presume
> 8 bits get packed into one byte of the image-area, but what's the
> bit ordering? which bit of image[0][0] corresponds to bit 0 if the
> monochrome bitmap?
Please look up the documentation of the FT_Pixel_Mode enumeration.
> Do I need to make use of FT_LOAD_MONOCHROME somewhere?
Yes; you should use the load flags FT_LOAD_MONOCHROME and
FT_LOAD_TARGET_MONO (or FT_RENDER_MODE_MONO if you render the glyph
later).
Werner