Module dsdl.ttf

Functions

NameDescription
getFreeTypeVersion() Wraps TTF_GetFreeTypeVersion (from SDL_ttf 2.0.18) which gets the version of the FreeType library used by the linked SDL2_ttf
getHarfBuzzVersion() Wraps TTF_GetHarfBuzzVersion (from SDL_ttf 2.0.18) which gets the version of the HarfBuzz library used by the linked SDL2_ttf
getVersion() Wraps TTF_Linked_version which gets the version of the linked SDL2_ttf library
init() Wraps TTF_Init which initializes SDL2_ttf
loadSO(libName) Loads the SDL2_ttf shared dynamic library, which wraps bindbc-sdl's loadSDLTTF function
quit() Wraps TTF_Quit which deinitializes SDL2_ttf
wasInit() Wraps TTF_WasInit which checks whether SDL2_ttf has been initialized

Classes

NameDescription
Font D class that wraps TTF_Font enclosing a font object to render text from

Structs

NameDescription
GlyphMetrics D struct that wraps a glyph's metrics information

Enums

NameDescription
Direction D enum that wraps TTF_Direction (from SDL_ttf 2.20)
Hinting D enum that wraps TTF_HINTING_* enumerations
RenderQuality D enum that defines the render quality of font texts
WrappedAlign D enum that wraps TTF_WRAPPED_ALIGN_* enumerations (from SDL_ttf 2.20)