The API is no longer being updated here until further notice. |
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.