Font.this

Loads a dsdl2.ttf.Font from a font file with DPI and face index, which wraps TTF_OpenFontIndexDPI (from SDL_ttf 2.0.18)

Parameters

file string

path to 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