Font

Constructors

this
this(ubyte[] fontData)

Loads a TTF file. fontData should be the content of that file.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

getAscent
float getAscent(float fontSizePx)
getDescent
float getDescent(float fontSizePx)
getHeightOfx
float getHeightOfx(float fontSizePx)
measureText
box2i measureText(StringType s, float fontSizePx, float letterSpacingPx)

Meta