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

Initializes a new instance of FontDescription and initializes its members to the specified font, size, spacing, and style.

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 FontDescription(
	string fontName, 
	float size, 
	float spacing, 
	FontDescriptionStyle fontStyle
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

fontName
Type: System.String
The name of the font, such as Times New Roman.
size
Type: System.Single
The size, in points, of the font.
spacing
Type: System.Single
The amount of space, in pixels, to insert between letters in a string.
fontStyle
Type: Microsoft.Xna.Framework.Content.Pipeline.Graphics.FontDescriptionStyle
The font style for the font.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop