SpriteFont Members

The following tables list the members exposed by the SpriteFont type.

Public Properties

Name Description
Public Property Characters Gets a collection of all the characters that are included in the font.
Public Property DefaultCharacter Gets or sets the default character for the font.
Public Property LineSpacing Gets or sets the vertical distance (in pixels) between the base lines of two consecutive lines of text. Line spacing includes the blank space between lines as well as the height of the characters.
Public Property Spacing Gets or sets the spacing of the font characters.

Public Methods

Name Description
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method MeasureString Overloaded. Returns the width and height of a string.
Public Method ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

SpriteFont Class
Microsoft.Xna.Framework.Graphics Namespace