Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
DynamicSpriteFontData.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using SiliconStudio.Core;
4 using SiliconStudio.Core.Serialization.Contents;
5 
6 namespace SiliconStudio.Paradox.Graphics.Font
7 {
8  /// <summary>
9  /// Data for a dynamic SpriteFont object.
10  /// </summary>
11  [DataContract]
12  [ContentSerializer(typeof(DataContentSerializer<DynamicSpriteFontData>))]
14  {
15  /// <summary>
16  /// Input the family name of the (TrueType) font.
17  /// </summary>
18  public string FontName { get; set; }
19 
20  /// <summary>
21  /// Size and style for TrueType fonts in points.
22  /// </summary>
23  public float DefaultSize { get; set; }
24 
25  /// <summary>
26  /// Style for the font. 'regular', 'bold' or 'italic'. Default is 'regular
27  /// </summary>
28  public FontStyle Style { get; set; }
29 
30  /// <summary>
31  /// Specifies whether to use kerning information when rendering the font. Default value is false (NOT SUPPORTED YET).
32  /// </summary>
33  public bool UseKerning { get; set; }
34 
35  /// <summary>
36  /// By default, font textures is a grey. To generate ClearType textures, turn this flag to true
37  /// </summary>
38  public FontAntiAliasMode AntiAlias { get; set; }
39  }
40 }
SharpDX.DirectWrite.Font Font
FontAntiAliasMode
Available antialias mode.