docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class KerningTable

    Inheritance
    object
    KerningTable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: TMPro
    Assembly: Unity.TextMeshPro.dll
    Syntax
    [Serializable]
    public class KerningTable

    Constructors

    KerningTable()

    Declaration
    public KerningTable()

    Fields

    kerningPairs

    Declaration
    public List<KerningPair> kerningPairs
    Field Value
    Type Description
    List<KerningPair>

    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
    Type Name Description
    uint first
    GlyphValueRecord_Legacy firstAdjustments
    uint second
    GlyphValueRecord_Legacy secondAdjustments
    Returns
    Type Description
    int

    AddKerningPair()

    Declaration
    public void AddKerningPair()

    AddKerningPair(uint, uint, float)

    Add Kerning Pair

    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
    Type Description
    int

    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()
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)