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 = 0Top edge at ascent line — default, fits all ascenders and diacritics.
public static readonly TextOverEdge CapHeight = 1Top edge at cap height — tighter fit, matches Figma Vertical Trim.
public static readonly TextOverEdge HalfLeading = 2Top edge includes half-leading — matches CSS and Figma Standard mode.
