FontInstance: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
SharedXML/SharedFontStyles.xml
defines the traditional game fonts.FrameXML/FontStyles.xml
defines additional fonts for certain use cases.