Back to class index

Class FTFont

Summary

Describes a single font that is loaded in the system.

Description

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.

Member Reference

FTFontDescribes a single font that is loaded in the system.
GlyphCacheMapMaps a character-pointSize pair to an entry value.
filenameThe filename where the font was loaded from.
faceIndexA font file may contain multiple separate 'font faces'.
faceThe FT2 font face structure.
cachedCharsThe glyphs of each font are cached in exactly one FTGlyphCache.
glyphDataFileStores 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.
Back to class index