Links |
---|
Returns detailed information on a font object.
fontName, fontHeight, fontFlags = MyFontObject:GetFont()
Returns
- fontName
- String - Path to font file
- fontHeight
- Number - Font height in pixels. Due to internal graphics engine workings, this will be ridiculously close to an integer number, but not quite ever fully
- fontFlags
- String - See FontInstance:SetFont().
Example
print(GameFontNormal:GetFont()); > "Fonts\FRIZQT__.TTF" > 12.000000298023 > ""
Notes
- To get an integer font height, simply do
math.floor(fontHeight+0.5);
Patch changes
Patch 1.9.0 (2006-01-03): Added.[1]
References
- ^ Iriel. Detailed API Changes 1.8.1 -> 0.9.0 (Dec 4). Archived from the original