Font.this

Loads a dsdl2.ttf.Font from a font file, which wraps TTF_OpenFont

Parameters

file string

path to the font file

size uint

point size of the loaded font

Throws

dsdl2.SDLException if unable to load the font

Meta