Last active
October 20, 2023 17:28
-
-
Save mistzzt/9adc21f862859064bc60271f9e6e6c68 to your computer and use it in GitHub Desktop.
Sample description file for dynamic font generator of Terraria
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<XnaContent xmlns:Graphics="ReLogic.Content.Pipeline"> | |
<Asset Type="Graphics:DynamicFontDescription"> | |
<!-- | |
Modify this string to change the default font that will be imported. | |
--> | |
<FontName>Andy</FontName> | |
<!-- | |
Size is a float value, measured in points. Modify this value to change | |
the size of the font. | |
--> | |
<Size>14</Size> | |
<!-- | |
Spacing is a float value, measured in pixels. Modify this value to change | |
the amount of spacing in between characters. | |
--> | |
<Spacing>0</Spacing> | |
<!-- | |
UseKerning controls the layout of the font. If this value is true, kerning information | |
will be used when placing characters. | |
--> | |
<UseKerning>true</UseKerning> | |
<!-- | |
Style controls the default style of the font. Valid entries are "Regular", "Bold", "Italic", | |
and "Bold, Italic", and are case sensitive. | |
--> | |
<Style>Bold</Style> | |
<!-- | |
DefaultCharacter is the default character will be substituted if you draw | |
or measure text that contains characters which were not included in the font. | |
(However, you still need to include DefaultCharacter in the CharacterRegions below) | |
--> | |
<DefaultCharacter>*</DefaultCharacter> | |
<!-- | |
VerticalOffset controls how the maximum height of the font is determined. | |
"DefaultFontAscent" will use the maximum ascent size of the default font for reference. | |
"MaxAscent" will use the maximum ascent size found across all fonts used for reference. | |
"DefaultFontAscent" is the suggested option here. | |
--> | |
<VerticalOffset>DefaultFontAscent</VerticalOffset> | |
<!-- | |
CharacterRegions control what letters are available in the font. Every | |
character from Start to End will be built and made available for drawing. | |
The characters are ordered according to the Unicode standard. | |
Character regions may also override the default FontName, Size, and Style. (See above for details) | |
--> | |
<CharacterRegions> | |
<!-- English --> | |
<CharacterRegion> | |
<Start> </Start> | |
<End>©</End> | |
</CharacterRegion> | |
<!-- Latin Characters --> | |
<CharacterRegion> | |
<FontName>Comic Sans MS</FontName> | |
<Size>12</Size> | |
<Style>Regular</Style> | |
<Start>ª</Start> | |
<End>΅</End> | |
</CharacterRegion> | |
<!-- Extra Symbols --> | |
<CharacterRegion> | |
<FontName>Comic Sans MS</FontName> | |
<Size>12</Size> | |
<Style>Regular</Style> | |
<Start>–</Start> | |
<End>〿</End> | |
</CharacterRegion> | |
<!-- Cyrillic (Russian) --> | |
<CharacterRegion> | |
<Size>12</Size> | |
<Style>Regular</Style> | |
<Start>Ѐ</Start> | |
<End>ӿ</End> | |
</CharacterRegion> | |
<!-- Simplified Chinese --> | |
<CharacterRegion> | |
<FontName>Source Han Sans SC Regular</FontName> | |
<Size>12</Size> | |
<Style>Regular</Style> | |
<Start>一</Start> | |
<End>鿿</End> | |
</CharacterRegion> | |
<!-- Full Width English (For Simplified Chinese) --> | |
<CharacterRegion> | |
<FontName>Source Han Sans SC Regular</FontName> | |
<Size>12</Size> | |
<Style>Regular</Style> | |
<Start>!</Start> | |
<End>⦆</End> | |
</CharacterRegion> | |
</CharacterRegions> | |
</Asset> | |
</XnaContent> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment