Class KerningTable
Inheritance
System.Object
KerningTable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: TMPro
Syntax
[Serializable]
public class KerningTable
Constructors
KerningTable()
Declaration
public KerningTable()
Fields
kerningPairs
Declaration
public List<KerningPair> kerningPairs
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<KerningPair> |
Methods
AddGlyphPairAdjustmentRecord(UInt32, GlyphValueRecord, UInt32, GlyphValueRecord)
Add Glyph pair adjustment record
Declaration
public int AddGlyphPairAdjustmentRecord(uint first, GlyphValueRecord firstAdjustments, uint second, GlyphValueRecord secondAdjustments)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | first | |
GlyphValueRecord | firstAdjustments | |
System.UInt32 | second | |
GlyphValueRecord | secondAdjustments |
Returns
Type | Description |
---|---|
System.Int32 |
AddKerningPair()
Declaration
public void AddKerningPair()
AddKerningPair(UInt32, UInt32, Single)
Add Kerning Pair
Declaration
public int AddKerningPair(uint first, uint second, float offset)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | first | First glyph |
System.UInt32 | second | Second glyph |
System.Single | offset | xAdvance value |
Returns
Type | Description |
---|---|
System.Int32 |
RemoveKerningPair(Int32)
Declaration
public void RemoveKerningPair(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
RemoveKerningPair(Int32, Int32)
Declaration
public void RemoveKerningPair(int left, int right)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | left | |
System.Int32 | right |
SortKerningPairs()
Declaration
public void SortKerningPairs()