Font

Undocumented in source.

Constructors

this
this(ubyte[] fontData)

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

Destructor

~this
~this()
Undocumented in source.

Members

Functions

getAscent
float getAscent(float fontSizePx)
getDescent
float getDescent(float fontSizePx)
getHeightOfx
float getHeightOfx(float fontSizePx)
measureText
box2i measureText(const(char)[] s, float fontSizePx, float letterSpacingPx)

Meta