Text::useFont()
The font every text uses unless it sets its own, from now on. Without it, texts use Ubuntu Mono, or Jersey 10 in pixel-art mode.
Examples
Syntax
Java
.useFont(path)
.useFont(path, pixelSize)
Parameters
| Name | Data Type | Description |
|---|---|---|
| path | String | a TTF or OTF file |
| pixelSize | double | the size at which one font pixel is one stage pixel |
Return
void