docs.unity3d.com
    Show / Hide Table of Contents

    Struct TMP_GlyphValueRecord

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

    Namespace: TMPro
    Syntax
    [Serializable]
    public struct TMP_GlyphValueRecord

    Constructors

    TMP_GlyphValueRecord(Single, Single, Single, Single)

    Constructor

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

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

    Single yPlacement

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

    Single xAdvance

    The positional adjustment affecting the horizontal advance of the glyph.

    Single 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
    Single

    xPlacement

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

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

    yAdvance

    The positional adjustment affecting the vertical advance of the glyph.

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

    yPlacement

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

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

    Operators

    Addition(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
    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