Docsv3.30.0
Back to API Reference
Enum

TextUnderEdge

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

Remarks

Controls how the last line contributes to the total text height. Matches CSS text-box-edge under-edge values and Figma Vertical Trim.
public static readonly TextUnderEdge Descent = 0

Bottom edge at descent line — default, fits all descenders.

public static readonly TextUnderEdge Baseline = 1

Bottom edge at baseline — tighter fit, matches Figma Vertical Trim.

public static readonly TextUnderEdge HalfLeading = 2

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

public static readonly TextUnderEdge Text = 3

Bottom edge at the typographic descent (OS/2 sTypo, CSS text-box-edge: text). Falls back to the descent line when the font has no typo metrics.

public static readonly TextUnderEdge Ink = 4

Bottom edge at the lowest glyph outline of the last line, so alignment places the drawn letters themselves; a last line without outlines keeps the descent line.