WoW:API FontInstance SetFontObject: Difference between revisions
Jump to navigation
Jump to search
(Factual correction. SystemFont is not available.) |
(Replace usage of deprecated link template with recommended tlylink) |
||
Line 15: | Line 15: | ||
MyFont:SetFontObject("GameTooltipTextSmall") | MyFont:SetFontObject("GameTooltipTextSmall") | ||
== Notes: == | == Notes: == | ||
Many font objects are predefined in [{{ | Many font objects are predefined in [{{tlylink|Fonts.xml}} Fonts.xml]. Anything from which one can inherit a <FontString> is a font object. | ||
Some of the font objects in the game: | Some of the font objects in the game: | ||
* GameFontNormal | * GameFontNormal | ||
* GameFontNormalSmall | * GameFontNormalSmall | ||
* GameFontNormalLarge | * GameFontNormalLarge | ||
* GameFontHighlight | * GameFontHighlight | ||
* GameFontHighlightSmall | * GameFontHighlightSmall | ||
* GameFontHighlightSmallOutline | * GameFontHighlightSmallOutline | ||
* GameFontHighlightLarge | * GameFontHighlightLarge | ||
* GameFontDisable | * GameFontDisable | ||
* GameFontDisableSmall | * GameFontDisableSmall | ||
* GameFontDisableLarge | * GameFontDisableLarge | ||
* GameFontGreen | * GameFontGreen | ||
* GameFontGreenSmall | * GameFontGreenSmall | ||
* GameFontGreenLarge | * GameFontGreenLarge | ||
* GameFontRed | * GameFontRed | ||
* GameFontRedSmall | * GameFontRedSmall | ||
* GameFontRedLarge | * GameFontRedLarge | ||
* GameFontWhite | * GameFontWhite | ||
* GameFontDarkGraySmall | * GameFontDarkGraySmall | ||
* NumberFontNormalYellow | * NumberFontNormalYellow | ||
* NumberFontNormalSmallGray | * NumberFontNormalSmallGray | ||
* QuestFontNormalSmall | * QuestFontNormalSmall | ||
* DialogButtonHighlightText | * DialogButtonHighlightText | ||
* ErrorFont | * ErrorFont | ||
* TextStatusBarText | * TextStatusBarText | ||
* CombatLogFont | * CombatLogFont |
Revision as of 21:00, 11 April 2018
← Widget API ← FontInstance < SetFontObject
Inherits all font attributes from another font.
MyFont:SetFontObject(fontObject)
Parameters
Arguments
- fontObject
- A reference to a font object, a name of a font object, or nil
Example
MyFont:SetFontObject(GameTooltipTextSmall)
MyFont:SetFontObject("GameTooltipTextSmall")
Notes:
Many font objects are predefined in Fonts.xml. 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