WoW:API FontInstance SetFontObject: Difference between revisions

m
Move page script moved page API FontInstance SetFontObject to WoW:API FontInstance SetFontObject without leaving a redirect
(Use {{wdnlink}} for fonts.xml)
m (Move page script moved page API FontInstance SetFontObject to WoW:API FontInstance SetFontObject without leaving a redirect)
 
(5 intermediate revisions by 5 users not shown)
Line 3: Line 3:
Inherits all font attributes from another font.
Inherits all font attributes from another font.


  Font:SetFontObject(fontObject)  
  MyFont:SetFontObject(fontObject)  


== Parameters ==
== Parameters ==
Line 11: Line 11:
== Example ==
== Example ==


  Font:SetFont(GameTooltipTextSmall)
  MyFont:SetFontObject(GameTooltipTextSmall)


  Font:SetFont("GameTooltipTextSmall")
  MyFont:SetFontObject("GameTooltipTextSmall")


== Notes: ==


== Notes: ==
Many font objects are predefined in [{{tlylink|Fonts.xml}} Fonts.xml]. Anything from which one can inherit a <FontString> is a font object.


Many font objects are predefined in [{{wdnlink|FrameXML/Fonts.xml}} Fonts.xml] in [[FrameXML]].  Anything from which one can inherit a <FontString> is a font object.
Some of the font objects in the game:
* GameFontNormal
* GameFontNormalSmall
* GameFontNormalLarge
* GameFontHighlight
* GameFontHighlightSmall
* GameFontHighlightSmallOutline
* GameFontHighlightLarge
* GameFontDisable
* GameFontDisableSmall
* GameFontDisableLarge
* GameFontGreen
* GameFontGreenSmall
* GameFontGreenLarge
* GameFontRed
* GameFontRedSmall
* GameFontRedLarge
* GameFontWhite
* GameFontDarkGraySmall
* NumberFontNormalYellow
* NumberFontNormalSmallGray
* QuestFontNormalSmall
* DialogButtonHighlightText
* ErrorFont
* TextStatusBarText
* CombatLogFont
Anonymous user