Struct ImGlyph
A glyph stores metrics of each character in the font. This describes how each character is laid out and how much space exists between each character.
Implements
System.IComparable<ImGlyph>
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: InitialPrefabs.NimGui.Text
Assembly: InitialPrefabs.ImGui.dll
Syntax
[Serializable]
public struct ImGlyph : IComparable<ImGlyph>
Fields
Advance
The spacing between the left edge of the character to the next character.
Declaration
public float Advance
Field Value
| Type | Description |
|---|---|
| System.Single |
Bearings
X bearing store the spacing between the previous rectangle and the character. While y bearing store the offset from the baseline to the top of the rectangle.
Declaration
public float2 Bearings
Field Value
| Type | Description |
|---|---|
| Unity.Mathematics.float2 |
MetricsSize
How big is the rectangle for the font?
Declaration
public float2 MetricsSize
Field Value
| Type | Description |
|---|---|
| Unity.Mathematics.float2 |
Unicode
Declaration
public uint Unicode
Field Value
| Type | Description |
|---|---|
| System.UInt32 |
Uvs
Stores the texture coordinates to render the font. XY stores the min, while zw stores the max.
Declaration
public float4 Uvs
Field Value
| Type | Description |
|---|---|
| Unity.Mathematics.float4 |
Methods
CompareTo(ImGlyph)
Declaration
public int CompareTo(ImGlyph other)
Parameters
| Type | Name | Description |
|---|---|---|
| ImGlyph | other |
Returns
| Type | Description |
|---|---|
| System.Int32 |
Operators
Implicit(Char to ImGlyph)
Declaration
public static implicit operator ImGlyph(char c)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Char | c |
Returns
| Type | Description |
|---|---|
| ImGlyph |
Implements
System.IComparable<T>