SpriteFont

Undocumented in source.

Constructors

this
this(TypeFace typeface)

Constructor

Members

Functions

MeasureCharacter
Vector2 MeasureCharacter(dchar c)

Measure the size of an individual character

MeasureString
Vector2 MeasureString(string text)

Measure the size of a string

getTexture
Texture2D getTexture()

Returns the texture for this sprite font

opIndex
GlyphInfo* opIndex(dchar c)

Indexer for glyph info

Properties

BaseCharSize
Vector2i BaseCharSize [@property getter]

Returns the base size for the character 'A'

TexSize
Vector2i TexSize [@property getter]

Gets the size of the sprite font texture atlas

Meta