TrueTypeFont

Font that load a TTF file.

Constructors

this
this(TrueTypeFont font)

Copy ctor

this
this(string path, int size_, int outline_)

Ctor

this
this(ubyte[] buffer, int size_, int outline_)

Init from buffer

Destructor

~this
~this()
Undocumented in source.

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 ch)
Undocumented in source. Be warned that the author may not have intended to support it.
setSmooth
void setSmooth(bool isSmooth_)

Toggle the glyph smoothing

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

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