FontDescription Class (Microsoft.Xna.Framework.Content.Pipeline.Graphics)

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.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public class FontDescription : ContentItem

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The FontDescription type exposes the following members.

  Platforms Name Description
FontDescription(string, float, float) Initializes a new instance of FontDescription and initializes its members to the specified font, size, and spacing, using FontDescriptionStyle.Regular as the default value for Style. 
FontDescription(string, float, float, FontDescriptionStyle) Initializes a new instance of FontDescription and initializes its members to the specified font, size, spacing, and style. 
FontDescription(string, float, float, FontDescriptionStyle, bool) Initializes a new instance of FontDescription using the specified values. 
Top
  Platforms Name Description
Characters  
DefaultCharacter Gets or sets the default character for the font. 
FontName Gets or sets the name of the font, such as "Times New Roman" or "Arial". This value cannot be null or empty. 
Identity Gets or sets the identity of the content item. (Inherited from ContentItem.)
Name Gets or sets the name of the content item. (Inherited from ContentItem.)
OpaqueData Gets the opaque data of the content item. (Inherited from ContentItem.)
Size Gets or sets the size, in points, of the font. 
Spacing Gets or sets the amount of space, in pixels, to insert between letters in a string. 
Style Gets or sets the style of the font, expressed as a combination of one or more FontDescriptionStyle flags. 
UseKerning Indicates if kerning information is used when drawing characters. 
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop