FontDescription.FontDescription Method (Microsoft.Xna.Framework.Content.Pipeline.Graphics)
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.
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
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 )
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.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows DirectX Desktop
Linux Desktop