WoW:API FontInstance SetFontObject: Difference between revisions
Jump to navigation
Jump to search
(Use {{wdnlink}} for fonts.xml) |
m (→Example) |
||
Line 11: | Line 11: | ||
== Example == | == Example == | ||
Font: | Font:SetFontObject(GameTooltipTextSmall) | ||
Font:SetFontObject("GameTooltipTextSmall") | |||
== Notes: == | == Notes: == | ||
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. |
Revision as of 22:08, 15 July 2006
← Widget API ← FontInstance < SetFontObject
Inherits all font attributes from another font.
Font:SetFontObject(fontObject)
Parameters
Arguments
- fontObject
- A reference to a font object, a name of a font object, or nil
Example
Font:SetFontObject(GameTooltipTextSmall)
Font: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.