Lore archive · Warcraft Wiki, 2023 dump
API FontInstance GetFont
Last wiki revision 2020-04-04
Returns detailed information on a font object.
fontName, fontHeight, fontFlags = MyFontObject:GetFont
- 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.
print(GameFontNormal:GetFont); > "Fonts\FRIZQT__.TTF" > 12.000000298023 > ""
- To get an integer font height, simply do
Source
https://warcraft.wiki.gg/wiki/API_FontInstance_GetFont · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.