Table of Contents

Property SuperscriptYSize

Namespace
DocWright.Fonts
Assembly
DocWright.Fonts.dll

SuperscriptYSize

Gets the superscript em size from OS/2 (ySuperscriptYSize, fUnits; 0 when undeclared).

public int SuperscriptYSize { get; }

Property Value

int

Remarks

Word sizes a superscript or subscript run from this field rather than from a fixed percentage, rounding the result to the nearest half point. Most faces declare 1331/2048 = 0.6499, which is why a hard-coded 65% passes almost everywhere; Impact declares 1081/2048 and Word sizes its superscript at exactly that fraction. A value of zero means the face declares nothing usable — the OS/2 table was absent, truncated, or filled with zeroes — and callers fall back rather than scaling by it.