Game Development Reference
In-Depth Information
packages\directxtk<version number>\tools\native
MakeSpriteFont.exe can also be found with the source code for this chapter, as
well as in source code form from the DirectXTK repository mentioned at the start of
this chapter.
MakeSpriteFont has a number of configuration options that you can use to tailor
your font file.
Parameter
Description
A region of characters to include in the font file,
defined using hex notation. For example, /Char-
acterRegion:0x20-0x7F .
CharacterRegion
The fallback character to render when your game
requests a character that isn't in the font file. De-
faults to throwing an exception.
DefaultCharacter
The size of the font, same as the font settings in
any other program with fonts. Defaults to 23pt .
FontSize
The style of the font; for example Italic or Bold .
Defaults to Regular .
FontStyle
Overrides the distances between adjacent lines.
Negative values will reduce the spacing; positive
values will increase the spacing.
LineSpacing
Search WWH ::




Custom Search