Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Tag: WoW API docs
Tag: WoW API docs
Line 4: Line 4:
 
</onlyinclude>
 
</onlyinclude>
 
== Class Hierarchy ==
 
== Class Hierarchy ==
As a template, {{api|t=o|Font}} is a unique kind of {{api|t=o|FontInstance}} that does ''not'' extend {{api|t=o|UIObject}}.
+
{{api|t=o|Font}} is a unique kind of {{api|t=o|FontInstance}} that does ''not'' extend {{api|t=o|UIObject}}.
   
 
* {{api|t=o|FontInstance}}
 
* {{api|t=o|FontInstance}}

Revision as of 22:12, 5 July 2020

Font objects define a common text appearance assignable using FontInstance:SetFontObject(fontObject).

Class Hierarchy

Font is a unique kind of FontInstance that does not extend UIObject.

Construction

In Lua
  • CreateFont(name) - Creates a new font object with a globally accessible name.
In XML
  • <Font> - Defines a font object.
  • <FontFamily> - Defines a localization-dependent font object (compatibility for different character sets).
Templates

Methods

Font has all the methods of FontInstance, plus the following:

Font:CopyFontObject(otherFont) - Set this Font's attributes to be a copy of the otherFont font object's.
Font:GetAlpha()
Font:SetAlpha(alpha)

Patch changes

References