Describes a single font that is loaded in the system.
All fonts are loaded to and owned by a specific FTGlyphCache. A single font cannot be in several FTGlyphCaches, unless it is explicitly loaded to each (no sharing). The texture that actually contains the pixels corresponding to the characters of this glyph can be found in FTGlyphCache.
FTFont | Describes a single font that is loaded in the system. |
| GlyphCacheMap | Maps a character-pointSize pair to an entry value. |
filename | The filename where the font was loaded from. |
faceIndex | A font file may contain multiple separate 'font faces'. |
face | The FT2 font face structure. |
cachedChars | The glyphs of each font are cached in exactly one FTGlyphCache. |
glyphDataFile | Stores the raw .ttf data file, since freetype needs continued access to this data. |
FindCharInCache(ch,pointSize) | Returns the data structure that describes the position of the given character with the given pointsize in the cache, or 0 if the glyph is not in cache. |