from panda3d.core import StaticTextFont
- class StaticTextFont
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.
- __init__(font_def: PandaNode, cs: CoordinateSystem)
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.