docs.unity3d.com
    Show / Hide Table of Contents

    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()
    Back to top
    Copyright © 2025 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 02 April 2025