BitmapFont class Graphics

A font rendered from a pre-generated texture atlas.

BitmapFont allows for efficient text rendering It handles the generation if this atlas from a TrueType/OpenType font file.

Use ResourceManager.loadFont to create and load BitmapFont instances.

Constructors

BitmapFont(GL2 _gl)
Creates a new BitmapFont instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
leading double
The effective vertical spacing between lines of text, in pixels.
no setter
leadingBase double
The base vertical spacing (line height) for the font, in pixels.
getter/setter pair
leadingMod double
A multiplier applied to leadingBase to adjust the final line spacing.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tracking double
A multiplier applied to the advance width of each character to adjust horizontal spacing (tracking) between characters.
getter/setter pair

Methods

dispose() → dynamic
Releases all resources used by this BitmapFont.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultAscii → const String
A string containing the default set of printable ASCII characters (codes 32-126).
extendedAscii → const String
A string containing an extended set of ASCII characters.