Difference between revisions of "FontsWML"
From The Battle for Wesnoth Wiki
(And a little more...) |
|||
(4 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{WML Tags}} | ||
== the toplevel [fonts] tag == | == the toplevel [fonts] tag == | ||
− | The [fonts] tag describes fonts which are distributed | + | The '''[fonts]''' tag describes fonts which are distributed with the game. Each font must be declared here to be used by the game. |
− | be used by the game. | ||
− | The [fonts] tag has an element, ''order'', and a possible child tag, '''[font]''' | + | The '''[fonts]''' tag has an element, '''order''', and a possible child tag, '''[font]''' |
− | * ''order'' describes the order in which fonts are to be tried until the program finds one which contains the character | + | * '''order''': describes the order in which fonts are to be tried until the program finds one which contains the character to be displayed. ''order'' should be marked as translatable. |
− | to be displayed. ''order'' should be marked as translatable. | + | * '''[font]''': the [font] tag describes one installed font. It contains the following elements: |
− | * '''[font]''' the [font] tag describes one installed font. It contains the following elements: | + | ** '''name''': the filename of the font, without fonts/ prepended |
− | ** ''name'' the filename of the font, without fonts/ prepended | + | ** '''codepoints''': a list of Unicode codepoints (character codes) which are present in this font. This should be a list of comma-separated ranges, "ranges" being either a number, or a dash separated range (for example: "32-126"). |
− | ** ''codepoints'' a list of | ||
− | of comma-separated ranges, "ranges" being either a number, or a dash separated range (for example: "32-126"). | ||
== See Also == | == See Also == | ||
Line 18: | Line 16: | ||
* [[ReferenceWML]] | * [[ReferenceWML]] | ||
+ | |||
+ | [[Category: WML Reference]] |
Latest revision as of 22:17, 10 June 2012
the toplevel [fonts] tag
The [fonts] tag describes fonts which are distributed with the game. Each font must be declared here to be used by the game.
The [fonts] tag has an element, order, and a possible child tag, [font]
- order: describes the order in which fonts are to be tried until the program finds one which contains the character to be displayed. order should be marked as translatable.
- [font]: the [font] tag describes one installed font. It contains the following elements:
- name: the filename of the font, without fonts/ prepended
- codepoints: a list of Unicode codepoints (character codes) which are present in this font. This should be a list of comma-separated ranges, "ranges" being either a number, or a dash separated range (for example: "32-126").
See Also
This page was last edited on 10 June 2012, at 22:17.