> The FreeType2 API reference states that FT_Get_Name_Index function
> returns the glyph index of a given glyph name, 0 meaning 'undefined
> character code'.
>
> However FT_Get_Name_Index returns 0, if it is called for some
> TrueType/OpenType fonts for the existing glyphs named "asterisk",
> "space", "zero", etc...
FT_Get_Name_Index wasn't implemented -- apparently an omission.
I've fixed that now, thanks for the report. Please test. Note that
the implementation is very primitive; for quicker access it would be
probably necessary to store the glyph name data in a hash.
Werner
_______________________________________________
Freetype-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype-devel