Wikia

WoWWiki

API FontInstance GetFont

Talk0
98,452pages on
this wiki

Redirected from API Font GetFont

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);

Advertisement | Your ad here

Photos

Add a Photo
61,965photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki