Typeface.dpi

Set font scale. This should be called at least once before drawing. Text sets DPI automatically.

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

  1. Vector2 dpi(Vector2 scale)
    interface Typeface
    deprecated
    dpi
  2. Vector2 dpi()

Parameters

scale Vector2

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

Meta