[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft-devel] Re: [NECSV - LSB PJ] FT_Get_Name_Index returns 0 instead of a
From: |
Werner LEMBERG |
Subject: |
[ft-devel] Re: [NECSV - LSB PJ] FT_Get_Name_Index returns 0 instead of a glyph index |
Date: |
Sun, 18 Jan 2009 11:54:09 +0100 (CET) |
> 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [ft-devel] Re: [NECSV - LSB PJ] FT_Get_Name_Index returns 0 instead of a glyph index,
Werner LEMBERG <=