Class KerningTable
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.
Namespace: TMPro
Assembly: Unity.TextMeshPro.dll
Syntax
[Serializable]
public class KerningTable
Constructors
KerningTable()
Declaration
Fields
kerningPairs
Declaration
public List<KerningPair> kerningPairs
Field Value
Methods
AddGlyphPairAdjustmentRecord(uint, GlyphValueRecord_Legacy, uint, GlyphValueRecord_Legacy)
Add Glyph pair adjustment record
Declaration
public int AddGlyphPairAdjustmentRecord(uint first, GlyphValueRecord_Legacy firstAdjustments, uint second, GlyphValueRecord_Legacy secondAdjustments)
Parameters
Returns
AddKerningPair()
Declaration
public void AddKerningPair()
AddKerningPair(uint, uint, float)
Declaration
public int AddKerningPair(uint first, uint second, float offset)
Parameters
| Type |
Name |
Description |
| uint |
first |
First glyph
|
| uint |
second |
Second glyph
|
| float |
offset |
xAdvance value
|
Returns
RemoveKerningPair(int)
Declaration
public void RemoveKerningPair(int index)
Parameters
| Type |
Name |
Description |
| int |
index |
|
RemoveKerningPair(int, int)
Declaration
public void RemoveKerningPair(int left, int right)
Parameters
| Type |
Name |
Description |
| int |
left |
|
| int |
right |
|
SortKerningPairs()
Declaration
public void SortKerningPairs()