|
From: | Dimitrios . Papadopoulos |
Subject: | [ft-devel] Distinguish real missing character from real character with glyph index 0 |
Date: | Tue, 17 Mar 2015 12:59:56 +0100 |
Such a question belongs
to the FreeType user mailing list, not to the bug tracker...
You are misunderstanding the interface. If you try to access a font by character code with FT_Get_Char_Index, return value 0 means that there is no glyph in the font for this character code. If you try to access a font by glyph index with FT_Load_Glyph, a value larger than the number of glyphs makes this function return an error. Finally, if you try to access a font by glyph name with FT_Get_Name_Index, return value 0 means that there is no glyph in the font with this name. In case you still have questions please discuss this on the mailing list. | |
Mon
16 Mar 2015 01:09:14 PM GMT, original submission:
I would like to know if a character exists
on the font or not. Can we define something like FT_INDEX_NOT_FOUND 0xFFFFFFFFU and return it in case of real missing character? Or something that inform us that the character doesn't exist on the font. A new function is also welcome. |
[Prev in Thread] | Current Thread | [Next in Thread] |