WoW:API Button SetTextFontObject: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API Button SetTextFontObject to WoW:API Button SetTextFontObject without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<center>'''SetText''' ''-Documentation by Zillia-''</center>
{{widgetmethod}}


  Button:SetTextFontObject(String)
  Button:SetTextFontObject(String)
Line 53: Line 53:


----
----
{{WoW API}}
;''Notes''
 
This method has been renamed to '''SetNormalFontObject''' in 3.0 (WotLK)

Latest revision as of 04:45, 15 August 2023

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)