CreateFont
This function was added in DSL 1
Description
Creates a font object from a file.
function CreateFont(fontFile) --[[ ... ]] end
Parameters
fontFile
-string
- The path to the font file. This should be a valid file path to a font file (e.g.,.ttf
or.otf
).
Return Values
userdata
:userdata
- Returns a font object that can be used in drawing functions.
Example
local font = CreateFont('path/to/font.ttf')