UIOBJECT Font

(inherits from )

The Font object is the only type of object that is not attached to a parent widget; indeed, its purpose is to be shared between other objects that share font characteristics. In this way, changes to the Font object will update the text appearance of all text objects that have it set as their Font using. This allows a coder to maintain a consistent appearance between UI elements, as well as simplifying the resources and work required to update multiple text-based UI elements.

Construction

 * In Lua
 * - Creates a new font object with a globally accessible name.


 * In XML
 * - Defines a font object.
 * - Defines a localization-dependent font object (compatibility for different character sets).


 * Templates
 * defines limited localization-dependent character sets, intended only for inheriting into other Fonts.
 * defines the traditional game fonts.
 * defines additional fonts for certain use cases.