Wikia

WoWWiki

API FontInstance SetFontObject

Talk0
102,281pages on
this wiki
Widget API


Inherits all font attributes from another font.

MyFont:SetFontObject(fontObject) 

Parameters Edit

Arguments Edit

fontObject
A reference to a font object, a name of a font object, or nil

Example Edit

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

Notes: Edit

Many font objects are predefined in 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

Around Wikia's network

Random Wiki