Font::GetGlyphIndex

Font::GetGlyphIndex
virtual int GetGlyphIndex(UInt16 code) = 0;
Description

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
Parameters 
Description 
UInt16 code 
Character code which is mapped to the glyph index. 
Return Value

The glyph index value or -1 if the glyph is not available.