Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
Glyph.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.Mathematics;
5 
6 namespace SiliconStudio.Paradox.Graphics.Font
7 {
8  /// <summary>
9  /// Description of a glyph (a single character)
10  /// </summary>
11  [DataContract]
12  public class Glyph
13  {
14  /// <summary>
15  /// Unicode codepoint.
16  /// </summary>
17  public int Character;
18 
19  /// <summary>
20  /// Glyph image data (may only use a portion of a larger bitmap).
21  /// </summary>
23 
24  /// <summary>
25  /// Layout information.
26  /// </summary>
27  public Vector2 Offset;
28 
29  /// <summary>
30  /// Advance X
31  /// </summary>
32  public float XAdvance;
33 
34  /// <summary>
35  /// Index to a bitmap stored in <see cref="StaticSpriteFontData.Bitmaps"/>.
36  /// </summary>
37  public int BitmapIndex;
38  }
39 }
Represents a two dimensional mathematical vector.
Definition: Vector2.cs:42
Rectangle Subrect
Glyph image data (may only use a portion of a larger bitmap).
Definition: Glyph.cs:22
Vector2 Offset
Layout information.
Definition: Glyph.cs:27
SharpDX.DirectWrite.Font Font
Description of a glyph (a single character)
Definition: Glyph.cs:12
int BitmapIndex
Index to a bitmap stored in StaticSpriteFontData.Bitmaps.
Definition: Glyph.cs:37
int Character
Unicode codepoint.
Definition: Glyph.cs:17
Structure using the same layout than System.Drawing.Rectangle
Definition: Rectangle.cs:35