[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Pitch Smaller Than Bitmap Width + Make Build Errors
From: |
Mickey Gabel |
Subject: |
Re: [ft] Pitch Smaller Than Bitmap Width + Make Build Errors |
Date: |
Mon, 02 Feb 2009 11:33:17 +0200 |
User-agent: |
Thunderbird 2.0.0.19 (Windows/20081209) |
Thank you both Werner and Wenlin, it seems it was my bad: I assumed that
all bitmaps will have the gray level pixel mode.
I did not realize that even when I ask (and usually get) 8bpp
anti-aliased bitmaps, it seems that FT2 can still occasionally give me
1bpp bitmaps.
I guess this is an embedded bitmap? I just assumed that FT2 would
convert it to 8bpp because I said FT_RENDER_MODE_NORMAL.
I think either the docs are misleading or this is a bug.
The 2.3.8 docs for FT_Render_Mode say that "All modes except
FT_RENDER_MODE_MONO use 256 levels of opacity." and also say that
FT_RENDER_MODE_NORMAL "is the default render mode; it corresponds to
8-bit anti-aliased bitmaps."
Basically, it doesn't say you might get a different bitmap format than
what you asked for.
For completeness I am attaching a 50 line console C program which shows
this.
The font is simhei.ttf version 3.02 , file size 10,044,356 bytes (which
is why I am not attaching it).
Again, thank you for the help :)
show_char_00D7.zip
Description: Zip compressed data