dsdl2.ttf

Members

Classes

Font
class Font

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

Enums

Direction
enum Direction

D enum that wraps TTF_Direction (from SDL_ttf 2.20)

Hinting
enum Hinting

D enum that wraps TTF_HINTING_* enumerations

RenderQuality
enum RenderQuality

D enum that defines the render quality of font texts

WrappedAlign
enum WrappedAlign

D enum that wraps TTF_WRAPPED_ALIGN_* enumerations (from SDL_ttf 2.20)

Functions

getFreeTypeVersion
Version 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
Version 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
Version getVersion()

Wraps TTF_Linked_version which gets the version of the linked SDL2_ttf library

init
void init()

Wraps TTF_Init which initializes SDL2_ttf

loadSO
void loadSO(string libName)

Loads the SDL2_ttf shared dynamic library, which wraps bindbc-sdl's loadSDLTTF function

quit
void quit()

Wraps TTF_Quit which deinitializes SDL2_ttf

wasInit
bool wasInit()

Wraps TTF_WasInit which checks whether SDL2_ttf has been initialized

Structs

GlyphMetrics
struct GlyphMetrics

D struct that wraps a glyph's metrics information

Meta

Authors

Avaxar <avaxar@nekkl.org>