Navigation menu

WoW:API FontInstance SetFontObject: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
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:SetFontObject(GameTooltipTextSmall)
  MyFont:SetFontObject(GameTooltipTextSmall)


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


== Notes: ==  
== Notes: ==  


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.
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.
Anonymous user