docs.unity.cn
    Show / Hide Table of Contents

    Class KerningTable

    Inheritance
    Object
    KerningTable
    Namespace: TMPro
    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(UInt32, GlyphValueRecord_Legacy, UInt32, 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
    UInt32 first
    GlyphValueRecord_Legacy firstAdjustments
    UInt32 second
    GlyphValueRecord_Legacy secondAdjustments
    Returns
    Type Description
    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
    UInt32 first

    First glyph

    UInt32 second

    Second glyph

    Single offset

    xAdvance value

    Returns
    Type Description
    Int32

    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
    Type Name Description
    Int32 left
    Int32 right

    SortKerningPairs()

    Declaration
    public void SortKerningPairs()
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 June 2023