StaticTextFont
-
class StaticTextFont
Bases:
TextFont
A StaticTextFont is loaded up from a model that was previously generated via egg-mkfont, and contains all of its glyphs already generated and available for use. It doesn’t require linking with any external libraries like FreeType.
Inheritance diagram
-
StaticTextFont(PandaNode *font_def, CoordinateSystem cs = ::CS_default)
The constructor expects the root node to a model generated via egg-mkfont, which consists of a set of models, one per each character in the font.
If a
CoordinateSystem
value is specified, it informs the font of the coordinate system in which this model was generated. “up” in this coordinate system will be the direction of the top of the letters.
-
static TypeHandle get_class_type(void)
-
StaticTextFont(PandaNode *font_def, CoordinateSystem cs = ::CS_default)