Back to API Reference
Enum

TextOverEdge

Specifies which metric defines the top edge of the text box.

Remarks

Controls how the first line is positioned relative to the container top. Matches CSS text-box-edge over-edge values and Figma Vertical Trim.
public static readonly TextOverEdge Ascent = 0

Top edge at ascent line — default, fits all ascenders and diacritics.

public static readonly TextOverEdge CapHeight = 1

Top edge at cap height — tighter fit, matches Figma Vertical Trim.

public static readonly TextOverEdge HalfLeading = 2

Top edge includes half-leading — matches CSS and Figma Standard mode.