The D Programming Language's Unofficial Docs
beta
Dlang.org
Get Help
TtfFont
arsd
ttf
struct
TtfFont {
stbtt_fontinfo
font
;
this
(ubyte[] data);
void
load
(ubyte[] data);
ubyte
[]
renderCharacter
(dchar c, int size, int width, int height, float shift_x, float shift_y);
void
getStringSize
(char[] s, int size, int width, int height);
ubyte
[]
renderString
(char[] s, int size, int width, int height);
}
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)
arsd
ttf
classes
OpenGlLimitedFont
enums
OpenGlFontGLVersion
STBTT_MACSTYLE_DONTCARE
STBTT_vmove
functions
stbtt_GetGlyphBitmapBoxSubpixel
structs
DrawingTextContext
TtfFont
stbtt_bakedchar
Suggestion Box / Bug Report