from panda3d.core import 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

Inheritance diagram of StaticTextFont

__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.

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 getClassType() TypeHandle