Partilhar via


FontDescription Constructor (String, Single, Single, FontDescriptionStyle, Boolean)

Note

This constructor is available only when developing for Windows.

Initializes a new instance of FontDescription using the specified values.

Syntax

'Declaration
Public Sub New ( _
         fontName As String, _
         size As Single, _
         spacing As Single, _
         fontStyle As FontDescriptionStyle, _
         useKerning As Boolean _
)
public FontDescription (
         string fontName,
         float size,
         float spacing,
         FontDescriptionStyle fontStyle,
         bool useKerning
)
public:
FontDescription(
         String fontName,
         float size,
         float spacing,
         FontDescriptionStyle fontStyle,
         bool useKerning
)

Parameters

  • fontName
    Type: String
    The name of the font, such as Times New Roman.
  • size
    Type: Single
    The size, in points, of the font.
  • spacing
    Type: Single
    The amount of space, in pixels, to insert between letters in a string.
  • fontStyle
    Type: FontDescriptionStyle
    The font style for the font.
  • useKerning
    Type: Boolean
    true if kerning information is used when drawing characters; false otherwise.

Requirements

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics

Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

See Also

Reference

FontDescription Class
FontDescription Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows 7, Windows Vista, Windows XP