FontDescription.Characters Property

Gets the collection of characters provided by this FontDescription.

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

Syntax

[ContentSerializerIgnoreAttribute]
public ICollection<char> Characters { get; }

Property Value

The collection of characters.

Remarks

Characters can be used to change the characters provided by this FontDescription.

The Characters collection keeps track of duplicates automatically. It is not necessary for the user to make sure that each letter is added only once. The Characters collection will contain only one instance of each character, no matter how many times you call Add.

This collection of characters can be used to implement processing for a message file. A custom processor could read the message file, which would contain all of the text that the game will need to print, and add each character it finds to Characters.

See Also

Reference

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

Concepts

How to: Extend the Font Description Processor to Support Additional Characters

Platforms

Windows XP SP2, Windows Vista