Sets the `Font` object from which the properties of a font used in the frame are inherited.
Sets the Font object from which the properties of a font used in the frame are inherited. This method allows for easy standardization and reuse of font styles. For example, a SimpleHTML frame's normal font can be set to appear in the same style as many default UI elements by setting its font to "GameFontNormal" -- if Blizzard changes the main UI font in a future path, or if the user installs another addon which changes the main UI font, the button's font will automatically change to match.
Signature:
Code
SimpleHTML:SetFontObject(["element",] font) or SimpleHTML:SetFontObject(["element",] "name")
Arguments:
element - Name of an HTML element for which to set font properties (e.g. p, h1); if omitted, sets properties for the frame's default font (string)