561
edits
(→List of GUI Dialogs: -- added KeyMapper dialog) |
(→<font>: update "font" configuration documentation) |
||
Line 145: | Line 145: | ||
Parent: <tt><fonts></tt><br /> | Parent: <tt><fonts></tt><br /> | ||
Children: -<br /> | Children: -<br /> | ||
Properties: <tt>id</tt> (''required''), <tt>file | Properties: <tt>id</tt> (''required''), <tt>file</tt> (''required''), <tt>resolution</tt> | ||
===== Example ===== | ===== Example ===== | ||
Line 152: | Line 152: | ||
<font id = 'text_default' | <font id = 'text_default' | ||
file = 'default' | file = 'default' | ||
/> | /> | ||
</syntax> | </syntax> | ||
Line 165: | Line 164: | ||
* <tt>text_default</tt>: Core font for the engine, used to draw all the static text and most of the text in widgets. | * <tt>text_default</tt>: Core font for the engine, used to draw all the static text and most of the text in widgets. | ||
* <tt> | * <tt>text_button</tt>: Text for Button widgets. | ||
* <tt>text_normal</tt>: ''Normal'', smaller text (i.e. non bold) used sparsely (editable text widgets, about dialog, etc). | * <tt>text_normal</tt>: ''Normal'', smaller text (i.e. non bold) used sparsely (editable text widgets, about dialog, etc). | ||
For performance reasons, these identifiers are unique and limited (i.e. the parser doesn't expect any other custom identifiers). Future versions of the Theme Format may allow for custom Fonts specific to certain widgets. | For performance reasons, these identifiers are unique and limited (i.e. the parser doesn't expect any other custom identifiers). Future versions of the Theme Format may allow for custom Fonts specific to certain widgets. | ||
Line 177: | Line 173: | ||
* <tt>id [string]</tt>: Unique font identifier. | * <tt>id [string]</tt>: Unique font identifier. | ||
* <tt>file [string]</tt>: External Font file to load. Use "default" to let the renderer choose the most appropriate default font based on the active resolution (usually an builtin one). | * <tt>file [string]</tt>: External Font file to load. Use "default" to let the renderer choose the most appropriate default font based on the active resolution (usually an builtin one). | ||
* <tt>resolution [int x int]</tt>: Load only on a given resolution. See resolution-dependant keys. | * <tt>resolution [int x int]</tt>: Load only on a given resolution. See resolution-dependant keys. | ||
edits