Glyph Class
Namespace: Stride.Graphics.FontAssembly: Stride.dll
Description of a glyph (a single character)
System.Object →
Glyph
Derived from Glyph:
[DataContract]
public class Glyph
Name | Description | |
---|---|---|
Fields | ||
BitmapIndex | Index of the bitmap. |
|
Character | Unicode codepoint. |
|
Offset | Layout information. |
|
Subrect | Glyph image data (may only use a portion of a larger bitmap). |
|
XAdvance | Advance X |
Fields
BitmapIndex
Index of the bitmap.
public int BitmapIndex
Field Value
Type | Description |
---|---|
System.Int32 |
Character
Unicode codepoint.
public int Character
Field Value
Type | Description |
---|---|
System.Int32 |
Offset
Layout information.
public Vector2 Offset
Field Value
Type | Description |
---|---|
Vector2 |
Subrect
Glyph image data (may only use a portion of a larger bitmap).
public Rectangle Subrect
Field Value
Type | Description |
---|---|
Rectangle |
XAdvance
Advance X
public float XAdvance
Field Value
Type | Description |
---|---|
System.Single |