Wowpedia
Advertisement
Wowpedia
240,475
pages

Assigns a Font object to share its appearance.

fontInstance:SetFontObject(fontObject) 

Arguments

fontObject
Font | string?Optional; nil removes any prior assignment. - A reference to a font object, or its globally accessible name used as _G["fontObject"], or nil to remove any prior assignment.

Details

Examples

myFontString:SetFontObject(GameTooltipTextSmall)
myFontString:SetFontObject("GameTooltipTextSmall")

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

See also

Advertisement