FontInstance:GetFontObject

From Warcraft Wiki
Jump to navigation Jump to search

Returns the font object from which the font instance's properties are inherited.

font = FontInstance:GetFontObject()

Returns

font
Font?🔗 - Reference to the font object from which the font instance's properties are inherited.

Example

local font = GameFontNormal:GetFontObject()
print(font:GetName()) -- "SystemFont_Shadow_Med1"