Re: [ft-devel] character spacing

2011-09-18 Thread Louis Desjardins
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? Thank-you! From: lost_bits1...@hotmai

Re: [ft-devel] character spacing

2011-09-18 Thread Werner LEMBERG
> 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 `GPO

Re: [ft-devel] character spacing

2011-09-18 Thread Werner LEMBERG
>> 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? No. > When I call, FT_Get_Kerning, the `akerning' va

Re: [ft-devel] FT_Get_Kerning returns 0

2011-09-18 Thread Werner LEMBERG
> 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_KER

Re: [ft-devel] character spacing

2011-09-18 Thread Louis Desjardins
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 ake

Re: [ft-devel] character spacing

2011-09-18 Thread Werner LEMBERG
> In order to draw my text, I currently make calls to: > > FT_Get_Char_Index > FT_Load_Glyph > FT_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 problem is that

[ft-devel] FT_Get_Kerning returns 0

2011-09-18 Thread Louis Desjardins
Hello, 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_KERNI

[ft-devel] character spacing

2011-09-18 Thread Louis Desjardins
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 probl