The OpenD Programming Language

TtfFont

Constructors

this
this(ubyte[] data)

Members

Functions

getStringSize
void getStringSize(char[] s, int size, int width, int height)
load
void load(ubyte[] data)
renderCharacter
ubyte[] renderCharacter(dchar c, int size, int width, int height, float shift_x, float shift_y)

Note that you must stbtt_FreeBitmap(returnValue.ptr, null); this thing or it will leak!!!!

renderString
ubyte[] renderString(char[] s, int size, int width, int height)

Meta