Tag: WoW API docs |
Tag: WoW API docs |
||
Line 4: | Line 4: | ||
</onlyinclude> |
</onlyinclude> |
||
== Class Hierarchy == |
== Class Hierarchy == |
||
− | + | {{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
The API is no longer being updated here until further notice. |
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.
- FontInstance
- Font
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
-
FrameXML/Fonts.xml
defines limited localization-dependent character sets, intended only for inheriting into other Fonts.FrameXML/SharedFontStyles.xml
defines the traditional game fonts.FrameXML/FontStyles.xml
defines additional fonts for certain use cases.
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
- Patch 1.10.0 (2006-03-28): Implemented by the new concrete type Font.[1]
References
- ^ Iriel 2005-12-28. Upcoming 1.10 Changes - Concise List. Archived from the original