Wikia

WoWWiki

Watchlist Recent changes

API FontInstance GetFont

Redirected from API Font GetFont

Main Menue



Returns detailed information on a font object

fontName, fontHeight, fontFlags = MyFontObject:GetFont()

Returns Edit

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 Edit

print(GameFontNormal:GetFont());

> "Fonts\FRIZQT__.TTF"
> 12.000000298023
> ""

Notes Edit

To get an integer font height, simply do math.floor(fontHeight+0.5);

Pages on WoWWiki

94,193pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
55,622photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki