Font
font.create
Client
Creates a new font instance
Syntax
local instance = font.create(path)Parameters
| Type | Name | Description |
|---|---|---|
string | path | Path to the font file relative to the resource directory |
Returns
| Type | Name | Description |
|---|---|---|
font | instance | Created font instance |
Examples
local fontface = font.create("fonts/Roboto-Regular.ttf")
engine.print("info", fontface:get_type()) --'font'