|
From: | Nikolay Sivov |
Subject: | Re: [ft] Missing glyphs vs. invisible glyphs for certain characters |
Date: | Fri, 4 Dec 2015 17:23:23 +0300 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
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 address@hidden https://lists.nongnu.org/mailman/listinfo/freetype
[Prev in Thread] | Current Thread | [Next in Thread] |