WoW:API FontInstance SetFontObject: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
(Use {{wdnlink}} for fonts.xml)
Line 1: Line 1:
Font:SetFontObject(fontObject) - Inherits all details from another font.
{{widgetmethod}}__NOTOC__


fontObject is a font object (or nil)
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 ==


Usage
  Font:SetFont(GameTooltipTextSmall)
  Font:SetFont(GameTooltipTextSmall)
Font:SetFont("GameTooltipTextSmall")




== Notes: ==  
== Notes: ==  


Many font objects are predefined in Fonts.xml.  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.
 
{{template:WoW API}}

Revision as of 15:55, 11 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:SetFont(GameTooltipTextSmall)
Font:SetFont("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.