docs.unity.cn
    Show / Hide Table of Contents

    Struct MarkPositionAdjustment

    A MarkPositionAdjustment defines the positional adjustment of a glyph relative to the anchor point of base glyph. This data structure is used by the Mark-to-Base, Mark-to-Mark and Mark-to-Ligature OpenType font features.

    Namespace: TMPro
    Syntax
    [Serializable]
    public struct MarkPositionAdjustment

    Constructors

    MarkPositionAdjustment(Single, Single)

    Initializes and returns an instance of MarkPositionAdjustment

    Declaration
    public MarkPositionAdjustment(float x, float y)
    Parameters
    Type Name Description
    Single x

    The horizontal positional adjustment.

    Single y

    The vertical positional adjustment.

    Properties

    xPositionAdjustment

    The horizontal positional adjustment of the glyph relative to the anchor point of its parent base glyph.

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

    yPositionAdjustment

    The vertical positional adjustment of the glyph relative to the anchor point of its parent base glyph.

    Declaration
    public float yPositionAdjustment { get; set; }
    Property Value
    Type Description
    Single
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 June 2023