WoW:API FontInstance SetFontObject: Difference between revisions

m
Move page script moved page API FontInstance SetFontObject to WoW:API FontInstance SetFontObject without leaving a redirect
mNo edit summary
m (Move page script moved page API FontInstance SetFontObject to WoW:API FontInstance SetFontObject without leaving a redirect)
 
(6 intermediate revisions by 5 users not shown)
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.


Usage
  MyFont:SetFontObject(fontObject)  
  Font:SetFont(GameTooltipTextSmall)


== Parameters ==
=== Arguments ===
:;fontObject: A reference to a font object, a name of a font object, or nil


== Notes: ==  
== Example ==


Many font objects are predefined in Fonts.xml. Anything from which one can inherit a <FontString> is a font object.
  MyFont:SetFontObject(GameTooltipTextSmall)


{{template:WoW API}}
MyFont:SetFontObject("GameTooltipTextSmall")
 
== Notes: ==
 
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:
* 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
Anonymous user