FANDOM


m (catfix, Replaced: {{widgetmethod}}<br> → {{widgetmethod}})
 
Line 51: Line 51:
 
* TextStatusBarText
 
* TextStatusBarText
 
* CombatLogFont
 
* CombatLogFont
  +
  +
----
  +
;''Notes''
  +
  +
This method has been renamed to '''SetNormalFontObject''' in 3.0 (WotLK)

Latest revision as of 03:55, July 21, 2008

Widget API ← Button < SetTextFontObject
Button:SetTextFontObject(String)

Sets the Button's font to the object specified by String.


Arguments
String
The String identifying a font object

Returns

No return value.


Example
Button:SetTextFontObject("GameFontNormal")



Details

Some of the known FontStrings in the game:

  • SystemFont
  • 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

Notes

This method has been renamed to SetNormalFontObject in 3.0 (WotLK)

Community content is available under CC-BY-SA unless otherwise noted.