The API is no longer being updated here until further notice. |
Sets the font instance's basic font properties.
success = FontInstance:SetFont(fontFile, height, flags)
Arguments[]
- fontFile
- string - Path to the font file.
- height
- number - Size in points.
- flags
- string - Any comma-delimited combination of
OUTLINE
,THICK
andMONOCHROME
; otherwise must be at least an empty string (except for FontString objects).
Returns[]
- success
- boolean? - True if
fontFile
refers to a valid font, otherwise returns nil.
Example[]
myFontString:SetFont("Fonts\\FRIZQT__.TTF", 11, "OUTLINE, MONOCHROME")
Patch changes[]
Patch 10.0.0 (2022-10-25): The flags
parameter is no longer optional.