API FontInstance SetFontObject

Assigns a object to share its appearance. fontInstance:SetFontObject(fontObject)

Arguments

 * fontObject: | ? Optional; nil removes any prior assignment. - A reference to a font object, or its globally accessible name used as , or nil to remove any prior assignment.

Details

 * The following objects are pre-built into the game:
 * defines the traditional game fonts.
 * defines additional fonts for certain use cases.
 * Other font objects are made using or

Examples
myFontString:SetFontObject(GameTooltipTextSmall)

myFontString:SetFontObject("GameTooltipTextSmall")

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