|
From: | samaram s |
Subject: | [ft] Pixel_Mode is wrong |
Date: | Wed, 27 Jan 2010 15:34:45 -0500 |
We have reduced the size of our code, but it does exactly the same thing:
We use the function FT_Load_Char instead of FT_Load_Glyph. As you probably imagine, it is equivalent to calling FT_Get_Char_Index then FT_Get_Load_Glyph.
We do not use FT_LOAD_DEFAULT for the loading mode, but the bit flag FT_LOAD_RENDER. It indicates that the glyph image must be immediately converted to an anti-aliased bitmap. This is of course a shortcut that avoids calling FT_Render_Glyph explicitly but is strictly equivalent.
Note that you can also specify that you want a monochrome bitmap instead by using the addition FT_LOAD_MONOCHROME load flag.
[Prev in Thread] | Current Thread | [Next in Thread] |