Glyph
A Glyph is the visual representation of a text element or character.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Class
- Namespace: UnityEngine.TextCore
- Assembly: UnityEngine.TextCoreFontEngineModule
public class Glyph
Constructors
Constructor | Description |
|---|---|
| Glyph() | Constructor for a new glyph. |
| Glyph(System.UInt32,UnityEngine.TextCore.GlyphMetrics,UnityEngine.TextCore.GlyphRect) | Constructor for a new glyph. |
| Glyph(System.UInt32,UnityEngine.TextCore.GlyphMetrics,UnityEngine.TextCore.GlyphRect,System.Single,System.Int32) | Constructor for a new glyph. |
| Glyph(UnityEngine.TextCore.Glyph) | Constructor for a new glyph. |
Properties
Property | Description |
|---|---|
| atlasIndex | The index of the atlas texture that contains this glyph. |
| classDefinitionType | Glyph class definition type. |
| glyphRect | A rectangle that defines the position of a glyph within an atlas texture. |
| index | The index of the glyph in the source font file. |
| metrics | The metrics that define the size, position and spacing of a glyph when performing text layout. |
| scale | The relative scale of the glyph. The default value is 1.0. |
Methods
Method | Description |
|---|---|
| Compare | Compares two glyphs to determine if they have the same values. |