Difference between revisions of "FontsWML"
From The Battle for Wesnoth Wiki
(→the toplevel [fonts] tag) |
(Highlight tags and attributes) |
||
Line 3: | Line 3: | ||
− | The [fonts] tag describes fonts which are distributed alog with the wesnoth binary. Each font must be declared here to | + | The '''[fonts]''' tag describes fonts which are distributed alog with the wesnoth binary. 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 | + | ** '''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"). | of comma-separated ranges, "ranges" being either a number, or a dash separated range (for example: "32-126"). | ||
Revision as of 04:48, 21 February 2008
the toplevel [fonts] tag
The [fonts] tag describes fonts which are distributed alog with the wesnoth binary. 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").