PeachDrawing.Text

PeachDrawing.Text.OpenType.BaselineTable

BaselineTable.TryGetBaseline(bool, string, string, double) Method

Looks up where the font puts a baseline.

public bool TryGetBaseline(bool vertical, string? scriptTag, string baselineTag, out double designUnits);

Parameters

vertical System.Boolean

true for the vertical axis, false for the horizontal one.

scriptTag System.String

The OpenType script tag (for example latn or hani). A script the table does not list falls back to DFLT, then latn; null uses that same fallback.

baselineTag System.String

The baseline’s four-character tag, such as romn, ideo, hang, math, icfb or icft.

designUnits System.Double

The baseline’s coordinate in design units, when this returns true.

Returns

System.Boolean
true when the table gives a coordinate for the baseline.