Font.this

Loads a dsdl2.ttf.Font from a buffer with DPI, which wraps TTF_OpenFontDPIRW (from SDL_ttf 2.0.18)

Parameters

data void[]

buffer of the font file

size uint

point size of the loaded font

hdpi uint

target horizontal DPI

vdpi uint

target vertical DPI

Throws

dsdl2.SDLException if unable to load the font

Meta