arsd.ttf

TrueType Font rendering. Meant to be used with arsd.simpledisplay, but it doesn't actually require that. Port of stb_truetype plus D wrappers for convenience.

Members

Classes

OpenGlLimitedFont
class OpenGlLimitedFont(OpenGlFontGLVersion ver = OpenGlFontGLVersion.old)

Note that the constructor calls OpenGL functions and thus this must be called AFTER the context creation, e.g. on simpledisplay's window first visible delegate.

OpenGlLimitedFontBase
class OpenGlLimitedFontBase()
Undocumented in source.

Enums

OpenGlFontGLVersion
enum OpenGlFontGLVersion

Version of OpenGL you want it to use. Currently only two options.

STBTT_MACSTYLE_DONTCARE
anonymousenum STBTT_MACSTYLE_DONTCARE

///////////////////////////////////////////////////////////////////////////

STBTT_vmove
anonymousenum STBTT_vmove

///////////////////////////////////////////////////////////////////////////

Functions

stbtt_GetGlyphBitmapBoxSubpixel
void stbtt_GetGlyphBitmapBoxSubpixel(stbtt_fontinfo* font, int glyph, float scale_x, float scale_y, float shift_x, float shift_y, int* ix0, int* iy0, int* ix1, int* iy1)

///////////////////////////////////////////////////////////////////////////

Structs

DrawingTextContext
struct DrawingTextContext
Undocumented in source.
TtfFont
struct TtfFont
stbtt_bakedchar
struct stbtt_bakedchar

///////////////////////////////////////////////////////////////////////////

Meta

Credits

Started as a copy of stb_truetype by Sean Barrett and ketmar helped with expansions.