Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

API FontInstance SetFontObject

From WoW Classic Wiki
(Redirected from API Font 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 Fonts.xml in FrameXML. Anything from which one can inherit a <FontString> is a font object.