Attached is a sample glyphmono_bitmap.c,In which you can find the glyph data
writing into a file called BitmapData_Mono, Show data reads and displays on
screen.

*Usage: <exename> <ttf filename> <char to get bitmap>*

Though width is less than 8 bits you can find all the second bytes as zeros.

Thanks,



On Mon, Feb 8, 2010 at 11:09 AM, Werner LEMBERG <w...@gnu.org> wrote:

>
> > I am using FT_LOAD_MONOCHROME to get a single bit bitmap.
> > Irrespective of the Bitmap->width, It is allocating two bytes of
> > data for each row.  Why is it so?  I thought it should have only a
> > byte, if bitmap->width is (i mean x_max for each glyph) less than 8.
>
> This is a good question for which I currently have no answer.  Please
> post a minimal example which I can use for debugging.  Either there is
> a bug somewhere or the documentation should be improved.
>
>
>    Werner
>

Attachment: glyphmono_bitmap.c
Description: Binary data

_______________________________________________
Freetype mailing list
Freetype@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to