|
LifeLua 21-08-2025
Documentation for LifeLua, a Lua interpreter for the PS Vita
|
Loading fonts for draw.text() More...
Without loading a font, draw.text() uses the PS Vita's built-in system font. Load a font with font.load() and pass it to draw.text(), draw.textwidth() and draw.textheight().
Functions | |
| font | font.load (string path) |
| font font.load | ( | string | path | ) |
Loads a font file. Supported types are the PS Vita's .PGF and .PVF fonts, and anything FreeType can open, like .TTF, .OTF and .WOFF.
| path | Path to the font file (e.g. "app0:font.ttf") |