virtual int GetGlyphIndex(UInt16 code) = 0;
GetGlyphIndex maps a UTF-16 code to the glyph index. The function is non-const, but can be thread-safe and read only if the glyph table is permanently available. In cases such as external font providers, it can modify the glyph table on demand, but must be synchronized and thread-safe.
Parameters |
Description |
UInt16 code |
Character code which is mapped to the glyph index. |
The glyph index value or -1 if the glyph is not available.