PeachDrawing.Core

PeachDrawing.Core.TypefaceFont

TypefaceFont.GetBaselineHeightEm(string, bool) Method

How far above the alphabetic baseline the font itself puts a named baseline, as a fraction of the em (negative when below it), read from the font’s BASE table. Null when the font states nothing for it, in which case a caller approximates the baseline from the font’s metrics.

public override System.Nullable<double> GetBaselineHeightEm(string baselineTag, bool vertical);

Parameters

baselineTag System.String

The OpenType baseline tag: ideo, hang, math, icfb or icft.

vertical System.Boolean

Whether to read the vertical axis (the baselines of vertical text) rather than the horizontal one.

Returns

System.Nullable<System.Double>