Struct TMP_GlyphValueRecord
Important
This package is deprecated. From Unity 2023.2, TextMesh Pro is part of the Unity UI (uGUI) package. For current documentation, refer to TextMesh Pro in the Unity UI package.
The values used to adjust the position of a glyph or set of glyphs.
Inherited Members
Namespace: TMPro
Assembly: Unity.TextMeshPro.dll
Syntax
[Serializable]
public struct TMP_GlyphValueRecord
Constructors
TMP_GlyphValueRecord(float, float, float, float)
Constructor
Declaration
public TMP_GlyphValueRecord(float xPlacement, float yPlacement, float xAdvance, float yAdvance)
Parameters
| Type | Name | Description |
|---|---|---|
| float | xPlacement | The positional adjustment affecting the horizontal bearing X of the glyph. |
| float | yPlacement | The positional adjustment affecting the horizontal bearing Y of the glyph. |
| float | xAdvance | The positional adjustment affecting the horizontal advance of the glyph. |
| float | yAdvance | The positional adjustment affecting the vertical advance of the glyph. |
Properties
xAdvance
The positional adjustment affecting the horizontal advance of the glyph.
Declaration
public float xAdvance { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
xPlacement
The positional adjustment affecting the horizontal bearing X of the glyph.
Declaration
public float xPlacement { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
yAdvance
The positional adjustment affecting the vertical advance of the glyph.
Declaration
public float yAdvance { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
yPlacement
The positional adjustment affecting the horizontal bearing Y of the glyph.
Declaration
public float yPlacement { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Operators
operator +(TMP_GlyphValueRecord, TMP_GlyphValueRecord)
Declaration
public static TMP_GlyphValueRecord operator +(TMP_GlyphValueRecord a, TMP_GlyphValueRecord b)
Parameters
| Type | Name | Description |
|---|---|---|
| TMP_GlyphValueRecord | a | |
| TMP_GlyphValueRecord | b |
Returns
| Type | Description |
|---|---|
| TMP_GlyphValueRecord |