docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class KerningPair

    Inheritance
    object
    KerningPair
    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 KerningPair

    Constructors

    KerningPair()

    Declaration
    public KerningPair()

    KerningPair(uint, uint, float)

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

    KerningPair(uint, GlyphValueRecord_Legacy, uint, GlyphValueRecord_Legacy)

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

    Fields

    xOffset

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

    Properties

    firstGlyph

    The first glyph part of a kerning pair.

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

    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 spacing.

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

    secondGlyph

    The second glyph part of a kerning pair.

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

    secondGlyphAdjustments

    The positional adjustment of the second glyph.

    Declaration
    public GlyphValueRecord_Legacy secondGlyphAdjustments { get; }
    Property Value
    Type Description
    GlyphValueRecord_Legacy
    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)