Widget API: FontInstance:SetFontObject

From AddOn Studio
Revision as of 11:01, 1 August 2006 by WoWWiki>Mikk
Jump to navigation Jump to search

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.