Typeface.setSize

Set the font size. This should be called at least once before drawing. Text, if used, sets this automatically.

Font renderer should cache this and not change the scale unless updated.

interface Typeface
void
setSize
(,
float size
)

Parameters

dpi Vector2

Horizontal and vertical DPI value, for example (96, 96).

size float

Size of the font, in pixels.

Meta