WoW:API FontInstance GetFont: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
{{widgetmethod}}
{{widgetmethod|FontInstance}}


Returns detailed information on a font object
Returns detailed information on a font object
Line 5: Line 5:
  fontName, fontHeight, fontFlags = MyFontObject:GetFont()
  fontName, fontHeight, fontFlags = MyFontObject:GetFont()


== Returns ==  
== Returns ==


:;fontName: String - path to font file
:;fontName
:;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
:: String - path to font file
:;fontFlags: String - See [[API FontInstance SetFont|FontInstance:SetFont]]().
:;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 [[API FontInstance SetFont|FontInstance:SetFont]]().


== Example ==
== Example ==