PeachDrawing.Text

PeachDrawing.Text

ScriptPosition Struct

How a font’s designer wants subscripts or superscripts drawn: the size and offset of the OS/2 table’s recommended values.

public readonly record struct ScriptPosition : System.IEquatable<PeachDrawing.Text.ScriptPosition>

Implements System.IEquatable<ScriptPosition>

Remarks

Only the vertical size is used, so a run scaled by it keeps its proportions. Both values are fractions of the em.

Constructors  
ScriptPosition(double, double) How a font’s designer wants subscripts or superscripts drawn: the size and offset of the OS/2 table’s recommended values.
Properties  
BaselineShift How far the text moves from the baseline as a fraction of the em, up for a superscript and down for a subscript.
SizeScale The size of the smaller text as a fraction of the em, to multiply the text size by.