FontDescription¶
-
class
FontDescription
: ContentItem Provides information to the FontDescriptionProcessor describing which font to rasterize, which font size to utilize, and which Unicode characters to include in the processor output.
-
string
FontName
Gets or sets the name of the font, such as “Times New Roman” or “Arial”. This value cannot be null or empty.
-
float
Size
Gets or sets the size, in points, of the font.
-
float
Spacing
Gets or sets the amount of space, in pixels, to insert between letters in a string.
-
bool
UseKerning
Indicates if kerning information is used when drawing characters.
-
FontDescriptionStyle
Style
Gets or sets the style of the font, expressed as a combination of one or more FontDescriptionStyle flags.
-
System.Nullable<Char>
DefaultCharacter
Gets or sets the default character for the font.
-
readonly System.Collections.Generic.ICollection<Char>
Characters
-
Microsoft.Xna.Framework.Content.Pipeline.Graphics.CharacterRegion[]
get_CharacterRegions
()
-
void
set_CharacterRegions
(Microsoft.Xna.Framework.Content.Pipeline.Graphics.CharacterRegion[] value) Parameters: - value (Microsoft.Xna.Framework.Content.Pipeline.Graphics.CharacterRegion[]) –
-
void
set_Characters
(System.Collections.Generic.ICollection<Char> value) Parameters: - value (System.Collections.Generic.ICollection<Char>) –
-
string