FontDescription.FontName Property
Gets or sets the name of the font, such as "Times New Roman" or "Arial". This value cannot be null or empty.
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
Syntax
[ContentSerializerAttribute]
public string FontName { get; set; }
Property Value
The name of the font.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | FontName is null or an empty string. |
See Also
Reference
FontDescription Class
FontDescription Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace
Platforms
Windows XP SP2, Windows Vista