Class HeadTable
Data from the font's 'head' table: global metrics and bounding box for all glyphs.
public sealed record HeadTable : IEquatable<HeadTable>
- Inheritance
-
HeadTable
- Implements
- Inherited Members
Constructors
HeadTable(int, int, int, int, int, int, long, long, ushort, ushort)
Data from the font's 'head' table: global metrics and bounding box for all glyphs.
public HeadTable(int UnitsPerEm, int XMin, int YMin, int XMax, int YMax, int IndexToLocFormat, long Created, long Modified, ushort MacStyle = 0, ushort LowestRecPPEM = 0)
Parameters
UnitsPerEmintDesign units per em square (typically 1000 or 2048).
XMinintLeft edge of the bounding box that fits all glyphs.
YMinintBottom edge of the bounding box that fits all glyphs.
XMaxintRight edge of the bounding box that fits all glyphs.
YMaxintTop edge of the bounding box that fits all glyphs.
IndexToLocFormatintHow glyph offsets are stored: 0 = short (16-bit), 1 = long (32-bit).
CreatedlongWhen the font was created (as a raw timestamp).
ModifiedlongWhen the font was last modified (as a raw timestamp).
MacStyleushortMac style flags: bit 0 = bold, bit 1 = italic, etc.
LowestRecPPEMushortSmallest readable size in pixels per em.
Properties
Created
When the font was created (as a raw timestamp).
public long Created { get; init; }
Property Value
CreatedUtc
Font creation date as a UTC DateTime.
public DateTime CreatedUtc { get; }
Property Value
IndexToLocFormat
How glyph offsets are stored: 0 = short (16-bit), 1 = long (32-bit).
public int IndexToLocFormat { get; init; }
Property Value
LowestRecPPEM
Smallest readable size in pixels per em.
public ushort LowestRecPPEM { get; init; }
Property Value
MacStyle
Mac style flags: bit 0 = bold, bit 1 = italic, etc.
public ushort MacStyle { get; init; }
Property Value
Modified
When the font was last modified (as a raw timestamp).
public long Modified { get; init; }
Property Value
ModifiedUtc
Font modification date as a UTC DateTime.
public DateTime ModifiedUtc { get; }
Property Value
UnitsPerEm
Design units per em square (typically 1000 or 2048).
public int UnitsPerEm { get; init; }
Property Value
XMax
Right edge of the bounding box that fits all glyphs.
public int XMax { get; init; }
Property Value
XMin
Left edge of the bounding box that fits all glyphs.
public int XMin { get; init; }
Property Value
YMax
Top edge of the bounding box that fits all glyphs.
public int YMax { get; init; }
Property Value
YMin
Bottom edge of the bounding box that fits all glyphs.
public int YMin { get; init; }