Font.this

Loads a dsdl2.ttf.Font from a buffer with DPI and face index, which wraps TTF_OpenFontIndexDPIRW (from SDL_ttf 2.0.18)

Parameters

data void[]

buffer of the font file

size uint

point size of the loaded font

index size_t

face index of the loaded font

hdpi uint

target horizontal DPI

vdpi uint

target vertical DPI

Throws

dsdl2.SDLException if unable to load the font

Meta