Class KerningTable
Namespace: TMPro
Syntax
[Serializable]
public class KerningTable
Constructors
KerningTable()
Declaration
Fields
kerningPairs
Declaration
public List<KerningPair> kerningPairs
Field Value
Methods
AddGlyphPairAdjustmentRecord(UInt32, GlyphValueRecord, UInt32, GlyphValueRecord)
Add Glyph pair adjustment record
Declaration
public int AddGlyphPairAdjustmentRecord(uint first, GlyphValueRecord firstAdjustments, uint second, GlyphValueRecord secondAdjustments)
Parameters
Returns
AddKerningPair()
Declaration
public void AddKerningPair()
AddKerningPair(UInt32, UInt32, Single)
Declaration
public int AddKerningPair(uint first, uint second, float offset)
Parameters
Type |
Name |
Description |
UInt32 |
first |
First glyph
|
UInt32 |
second |
Second glyph
|
Single |
offset |
xAdvance value
|
Returns
RemoveKerningPair(Int32)
Declaration
public void RemoveKerningPair(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
RemoveKerningPair(Int32, Int32)
Declaration
public void RemoveKerningPair(int left, int right)
Parameters
SortKerningPairs()
Declaration
public void SortKerningPairs()