docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct TMP_GlyphValueRecord

    The values used to adjust the position of a glyph or set of glyphs.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: TMPro
    Assembly: Unity.TextMeshPro.dll
    Syntax
    [Serializable]
    public struct TMP_GlyphValueRecord

    Constructors

    TMP_GlyphValueRecord(float, float, float, float)

    Constructor

    Declaration
    public TMP_GlyphValueRecord(float xPlacement, float yPlacement, float xAdvance, float yAdvance)
    Parameters
    Type Name Description
    float xPlacement

    The positional adjustment affecting the horizontal bearing X of the glyph.

    float yPlacement

    The positional adjustment affecting the horizontal bearing Y of the glyph.

    float xAdvance

    The positional adjustment affecting the horizontal advance of the glyph.

    float yAdvance

    The positional adjustment affecting the vertical advance of the glyph.

    Properties

    xAdvance

    The positional adjustment affecting the horizontal advance of the glyph.

    Declaration
    public float xAdvance { get; set; }
    Property Value
    Type Description
    float

    xPlacement

    The positional adjustment affecting the horizontal bearing X of the glyph.

    Declaration
    public float xPlacement { get; set; }
    Property Value
    Type Description
    float

    yAdvance

    The positional adjustment affecting the vertical advance of the glyph.

    Declaration
    public float yAdvance { get; set; }
    Property Value
    Type Description
    float

    yPlacement

    The positional adjustment affecting the horizontal bearing Y of the glyph.

    Declaration
    public float yPlacement { get; set; }
    Property Value
    Type Description
    float

    Operators

    operator +(TMP_GlyphValueRecord, TMP_GlyphValueRecord)

    Declaration
    public static TMP_GlyphValueRecord operator +(TMP_GlyphValueRecord a, TMP_GlyphValueRecord b)
    Parameters
    Type Name Description
    TMP_GlyphValueRecord a
    TMP_GlyphValueRecord b
    Returns
    Type Description
    TMP_GlyphValueRecord
    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)