PeachDrawing.Core

PeachDrawing.Core.Font

Font.GetSubSuperscriptMetrics(bool) Method

This font’s own recommended geometry for a synthesized superscript (or subscript), as fractions of the em: the glyph scale factor, and how far the synthesized baseline sits from the main one, always positive. Null when the font states nothing usable, leaving the caller to fall back to representative ratios.

public abstract System.Nullable<(double SizeScale,double BaselineShift)> GetSubSuperscriptMetrics(bool superscript);

Parameters

superscript System.Boolean

Returns

System.Nullable<<System.Double,System.Double>>