Struct MarkPositionAdjustment
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.
A MarkPositionAdjustment defines the positional adjustment of a glyph relative to the anchor point of base glyph. This data structure is used by the Mark-to-Base, Mark-to-Mark and Mark-to-Ligature OpenType font features.
Inherited Members
Namespace: TMPro
Assembly: Unity.TextMeshPro.dll
Syntax
[Serializable]
public struct MarkPositionAdjustment
Constructors
MarkPositionAdjustment(float, float)
Initializes and returns an instance of MarkPositionAdjustment
Declaration
public MarkPositionAdjustment(float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
| float | x | The horizontal positional adjustment. |
| float | y | The vertical positional adjustment. |
Properties
xPositionAdjustment
The horizontal positional adjustment of the glyph relative to the anchor point of its parent base glyph.
Declaration
public float xPositionAdjustment { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
yPositionAdjustment
The vertical positional adjustment of the glyph relative to the anchor point of its parent base glyph.
Declaration
public float yPositionAdjustment { get; set; }
Property Value
| Type | Description |
|---|---|
| float |