FontInstance:SetFontObject
(Redirected from API FontString SetFontObject)
Jump to navigation
Jump to search
Inherits all font attributes from another font.
FontInstance:SetFontObject(font)
Arguments
- font
- Font🔗|string|nil - The reference or name of a font object e.g.
GameTooltipTextSmall
or"GameTooltipTextSmall"
. Explicitly passnil
to unset the font.
Example
myFontString:SetFontObject(GameTooltipTextSmall)
See also
Blizzard_FontStyles_Shared/SharedFontStyles.xml
defines the traditional game fonts.Blizzard_FontStyles_Frame/FontStyles.xml
defines additional fonts for certain use cases.