On 04.12.2015 16:48, Preet wrote:
Hi all

I've tried a few fonts out and I seem to be getting the same behaviour:
The zero index is returned for a few glyphs that I thought would be
'invisible' such as line feed or tab when I call FT_Get_Char_Index(...).
After rendering, the zero index glyph shows up as the visible 'missing
glyph' symbol.

Is this expected behavior? When rendering is it normal to go through the
text and get rid of these characters before getting glyphs from
FreeType? I'm aware FreeType isn't laying out the text, but I guess I
thought the layout characters would have invisible glyphs.

It depends on a font, freetype returns index for a char you asked for, if font doesn't provide a glyph for it, you'll get 0. Higher level layout logic is supposed to handle that.



Preet


_______________________________________________
Freetype mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype



_______________________________________________
Freetype mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to