PeachDrawing.Text
PeachDrawing.Text.Typeface
Typeface.TryGetBaselineHeight(bool, string, string, double) Method
How far above the alphabetic baseline (the romn baseline, or the font’s origin when the table does not list one) the BASE table puts
a named baseline, as a fraction of the em. Negative for a baseline below it.
public bool TryGetBaselineHeight(bool vertical, string? scriptTag, string baselineTag, out double ems);
Parameters
vertical System.Boolean
true for the vertical axis, false for the horizontal one.
scriptTag System.String
The OpenType script tag the text is in, or null for the table’s default script.
baselineTag System.String
The baseline’s four-character tag, such as ideo, hang, math, icfb or icft.
ems System.Double
The height in ems, when this returns true.
Returns
System.Boolean
true when the face has a BASE table that gives the baseline.