Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
StaticSpriteFontData.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;
5 using SiliconStudio.Core.Serialization.Contents;
7 
8 namespace SiliconStudio.Paradox.Graphics
9 {
10  /// <summary>
11  /// Data for a static SpriteFont object that supports kerning.
12  /// </summary>
13  /// <remarks>
14  /// Loading of SpriteFontData supports DirectXTk "MakeSpriteFont" format and AngelCode Bitmap Font Maker (binary format).
15  /// </remarks>
16  [DataContract]
17  [ContentSerializer(typeof(DataContentSerializer<StaticSpriteFontData>))]
19  {
20  /// <summary>
21  /// The number of pixels from the absolute top of the line to the base of the characters.
22  /// </summary>
23  public float BaseOffset;
24 
25  /// <summary>
26  /// The default line spacing of the font.
27  /// </summary>
28  public float FontDefaultLineSpacing;
29 
30  /// <summary>
31  /// An array of <see cref="Glyph"/> data.
32  /// </summary>
33  public Glyph[] Glyphs;
34 
35  /// <summary>
36  /// An array of <see cref="Image"/> data.
37  /// </summary>
39 
40  /// <summary>
41  /// An array of <see cref="Kerning"/> data.
42  /// </summary>
43  public Kerning[] Kernings;
44  }
45 }
float FontDefaultLineSpacing
The default line spacing of the font.
Describes kerning information.
Definition: Kerning.cs:11
SharpDX.DirectWrite.Font Font
Description of a glyph (a single character)
Definition: Glyph.cs:12
Data for a static SpriteFont object that supports kerning.
float BaseOffset
The number of pixels from the absolute top of the line to the base of the characters.
ContentReference< Image >[] Bitmaps
An array of Image data.