In order to draw my text, I currently make calls to:
FT_Get_Char_IndexFT_Load_GlyphFT_Render_Glyph
and then I store the bitmap of each ascii character to memory, so that once I
actually render the character, I can simply call on the stored bitmap.
The
Thanks for your reply -
Note, however, that today many fonts contain kerning in the GPOS table
which is not handled by FreeType. Instead, you have to use a
higher-level library like Pango or ICU.
FT_HAS_KERNING will return true for these types of fonts? When I call,
FT_Get_Kerning, the
I check if my TTF file has kerning information using FT_HAS_KERNING,
and this returns true. I then use: FT_Get_Kerning(face, prev, next,
FT_KERNING_DEFAULT, delta); to determine the kerning value, but
delta.x returns 0. How can I debug why the kerning value is 0 even
though FT_HAS_KERNING
Also - as I have already invested much time in Freetype I no longer
have time to integrate a different library such as Pango - is there
somewhere I can obtain freely distributable TTF files that contains
kerning information that can be handled by Freetype?
If a font doesn't contain a `GPOS'