BitmapFont

Font from a texture atlas.

Constructors

this
this(string name_, string texturePath, Metrics metrics)

Load from metrics and texture.

this
this(BitmapFont font)

Copy ctor

Members

Functions

getKerning
int getKerning(dchar prevChar, dchar currChar)
Undocumented in source. Be warned that the author may not have intended to support it.
getMetrics
Glyph getMetrics(dchar character)
Undocumented in source. Be warned that the author may not have intended to support it.
postload
void postload()

Call only after Renderer is created in main thread.

Properties

ascent
int ascent [@property getter]

Where the top is above the baseline

descent
int descent [@property getter]

Where the bottom is below the baseline

lineSkip
int lineSkip [@property getter]

Distance between each baselines

name
string name [@property getter]

Font name

size
int size [@property getter]

Default font size

Structs

Metrics
struct Metrics

Glyphs metrics

Inherited Members

From Font

name
string name [@property getter]

Font name

size
int size [@property getter]

Default font size

ascent
int ascent [@property getter]

Where the top is above the baseline

descent
int descent [@property getter]

Where the bottom is below the baseline

lineSkip
int lineSkip [@property getter]

Distance between each baselines

getKerning
int getKerning(dchar prevChar, dchar currChar)
Undocumented in source.
getMetrics
Glyph getMetrics(dchar character)
Undocumented in source.

Meta