WoW:UIOBJECT Font: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Created page with "{{widget|Font}} This object was introduced in 1.10 to replace virtual FontStrings, it allows for dynamic inheritance of font template changes. The standard UI fonts such as G...")
 
m (Move page script moved page UIOBJECT Font to UIOBJECT Font without leaving a redirect)
 
(No difference)

Latest revision as of 04:49, 15 August 2023

Widget API < Font

Allows just the base font information to be defined and refrenced, rather than always needing to create a full-blown FontString. (Added 1.10)

This object was introduced in 1.10 to provide and alternative to virtual FontStrings for both XML and Lua code.  Also, allows for easier dynamic in Lua inheritance for font template changes. The standard UI fonts such as GameFontNormal are now Font objects.

Font has all of the methods from UIObject and FontInstance, plus the following:

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