WoW:API FontInstance SetFontObject: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Updated with new information) |
||
Line 18: | Line 18: | ||
Many font objects are predefined in [{{wdnlink|FrameXML/Fonts.xml}} Fonts.xml] in [[FrameXML]]. Anything from which one can inherit a <FontString> is a font object. | Many font objects are predefined in [{{wdnlink|FrameXML/Fonts.xml}} Fonts.xml] in [[FrameXML]]. Anything from which one can inherit a <FontString> is a font object. | ||
Some of the font objects 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 |
Revision as of 20:43, 25 December 2007
← 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 [DEPRECATED http://wowprogramming.com/utils/xmlbrowser/live/FrameXML/Fonts.xml Fonts.xml] in FrameXML. Anything from which one can inherit a <FontString> is a font object.
Some of the font objects 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