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.
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.
CoordinateSystemvalue 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.
- StaticTextFont(PandaNode *font_def, CoordinateSystem cs = ::CS_default)