docs.unity3d.com
    Show / Hide Table of Contents

    Class KerningPair

    Inheritance
    Object
    KerningPair
    Namespace: TMPro
    Syntax
    [Serializable]
    public class KerningPair

    Constructors

    KerningPair()

    Declaration
    public KerningPair()

    KerningPair(UInt32, UInt32, Single)

    Declaration
    public KerningPair(uint left, uint right, float offset)
    Parameters
    Type Name Description
    UInt32 left
    UInt32 right
    Single offset

    KerningPair(UInt32, GlyphValueRecord_Legacy, UInt32, GlyphValueRecord_Legacy)

    Declaration
    public KerningPair(uint firstGlyph, GlyphValueRecord_Legacy firstGlyphAdjustments, uint secondGlyph, GlyphValueRecord_Legacy secondGlyphAdjustments)
    Parameters
    Type Name Description
    UInt32 firstGlyph
    GlyphValueRecord_Legacy firstGlyphAdjustments
    UInt32 secondGlyph
    GlyphValueRecord_Legacy secondGlyphAdjustments

    Fields

    xOffset

    Declaration
    [FormerlySerializedAs("XadvanceOffset")]
    public float xOffset
    Field Value
    Type Description
    Single

    Properties

    firstGlyph

    The first glyph part of a kerning pair.

    Declaration
    public uint firstGlyph { get; set; }
    Property Value
    Type Description
    UInt32

    firstGlyphAdjustments

    The positional adjustment of the first glyph.

    Declaration
    public GlyphValueRecord_Legacy firstGlyphAdjustments { get; }
    Property Value
    Type Description
    GlyphValueRecord_Legacy

    ignoreSpacingAdjustments

    Determines if the Character Spacing property of the text object will affect the kerning pair. This is mostly relevant when using Diacritical marks to prevent Character Spacing from altering the

    Declaration
    public bool ignoreSpacingAdjustments { get; }
    Property Value
    Type Description
    Boolean

    secondGlyph

    The second glyph part of a kerning pair.

    Declaration
    public uint secondGlyph { get; set; }
    Property Value
    Type Description
    UInt32

    secondGlyphAdjustments

    The positional adjustment of the second glyph.

    Declaration
    public GlyphValueRecord_Legacy secondGlyphAdjustments { get; }
    Property Value
    Type Description
    GlyphValueRecord_Legacy
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • 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 18 October 2023