Class Os2Metrics
Data from the font's 'OS/2' table: weight, width, and platform-specific metrics.
public sealed record Os2Metrics : IEquatable<Os2Metrics>
- Inheritance
-
Os2Metrics
- Implements
- Inherited Members
Constructors
Os2Metrics(int, int, int, int, int, int, int, int, int, byte[], int, int, short, short, short, short, short, short, short)
Data from the font's 'OS/2' table: weight, width, and platform-specific metrics.
public Os2Metrics(int WeightClass, int WidthClass, int TypoAscender, int TypoDescender, int TypoLineGap, int WinAscent, int WinDescent, int XHeight, int CapHeight, byte[] Panose, int FirstCharIndex, int LastCharIndex, short XAvgCharWidth = 0, short SubscriptXSize = 0, short SubscriptYSize = 0, short SuperscriptXSize = 0, short SuperscriptYSize = 0, short StrikeoutSize = 0, short StrikeoutPosition = 0)
Parameters
WeightClassintVisual weight class. 400 = regular, 700 = bold.
WidthClassintVisual width class. 5 = normal width.
TypoAscenderintTypographic ascent above the baseline, in font units.
TypoDescenderintTypographic descent below the baseline, in font units (usually negative).
TypoLineGapintTypographic line gap, in font units.
WinAscentintWindows clipping ascent boundary, in font units.
WinDescentintWindows clipping descent boundary, in font units.
XHeightintHeight of lowercase 'x', in font units.
CapHeightintHeight of uppercase letters, in font units.
Panosebyte[]10-byte array classifying the font's visual style (serif, weight, etc.).
FirstCharIndexintLowest Unicode character in the font.
LastCharIndexintHighest Unicode character in the font.
XAvgCharWidthshortWeighted average width of lowercase Latin letters and space, in font units.
SubscriptXSizeshortHorizontal size for subscripts, in font units.
SubscriptYSizeshortVertical size for subscripts, in font units.
SuperscriptXSizeshortHorizontal size for superscripts, in font units.
SuperscriptYSizeshortVertical size for superscripts, in font units.
StrikeoutSizeshortWidth of the strikeout stroke, in font units.
StrikeoutPositionshortPosition of the strikeout stroke relative to the baseline, in font units.
Properties
CapHeight
Height of uppercase letters, in font units.
public int CapHeight { get; init; }
Property Value
FirstCharIndex
Lowest Unicode character in the font.
public int FirstCharIndex { get; init; }
Property Value
LastCharIndex
Highest Unicode character in the font.
public int LastCharIndex { get; init; }
Property Value
Panose
10-byte array classifying the font's visual style (serif, weight, etc.).
public byte[] Panose { get; init; }
Property Value
- byte[]
StrikeoutPosition
Position of the strikeout stroke relative to the baseline, in font units.
public short StrikeoutPosition { get; init; }
Property Value
StrikeoutSize
Width of the strikeout stroke, in font units.
public short StrikeoutSize { get; init; }
Property Value
SubscriptXSize
Horizontal size for subscripts, in font units.
public short SubscriptXSize { get; init; }
Property Value
SubscriptYSize
Vertical size for subscripts, in font units.
public short SubscriptYSize { get; init; }
Property Value
SuperscriptXSize
Horizontal size for superscripts, in font units.
public short SuperscriptXSize { get; init; }
Property Value
SuperscriptYSize
Vertical size for superscripts, in font units.
public short SuperscriptYSize { get; init; }
Property Value
TypoAscender
Typographic ascent above the baseline, in font units.
public int TypoAscender { get; init; }
Property Value
TypoDescender
Typographic descent below the baseline, in font units (usually negative).
public int TypoDescender { get; init; }
Property Value
TypoLineGap
Typographic line gap, in font units.
public int TypoLineGap { get; init; }
Property Value
WeightClass
Visual weight class. 400 = regular, 700 = bold.
public int WeightClass { get; init; }
Property Value
WidthClass
Visual width class. 5 = normal width.
public int WidthClass { get; init; }
Property Value
WinAscent
Windows clipping ascent boundary, in font units.
public int WinAscent { get; init; }
Property Value
WinDescent
Windows clipping descent boundary, in font units.
public int WinDescent { get; init; }
Property Value
XAvgCharWidth
Weighted average width of lowercase Latin letters and space, in font units.
public short XAvgCharWidth { get; init; }
Property Value
XHeight
Height of lowercase 'x', in font units.
public int XHeight { get; init; }