Font.sizeDPI

Wraps TTF_SetFontSizeDPI (from SDL_ttf 2.0.18) to set the dsdl2.ttf.Font's size in DPI

class Font
@property @trusted
static if(sdlTTFSupport >= SDLTTFSupport.v2_0_18)
void
sizeDPI
(
Tuple!(uint, uint, uint) newSizeDPI
)

Parameters

newSizeDPI Tuple!(uint, uint, uint)

new DPI size tuple of the font size, hdpi, and vdpi

Throws

dsdl.SDLException if unable to set size

Meta