FontInstance:SetFontObject

From Warcraft Wiki
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 pass nil to unset the font.

Example

myFontString:SetFontObject(GameTooltipTextSmall)

See also