Table of Contents

Class HeadTable

Namespace
KernSmith.Font.Tables
Assembly
KernSmith.dll

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

UnitsPerEm int

Design units per em square (typically 1000 or 2048).

XMin int

Left edge of the bounding box that fits all glyphs.

YMin int

Bottom edge of the bounding box that fits all glyphs.

XMax int

Right edge of the bounding box that fits all glyphs.

YMax int

Top edge of the bounding box that fits all glyphs.

IndexToLocFormat int

How glyph offsets are stored: 0 = short (16-bit), 1 = long (32-bit).

Created long

When the font was created (as a raw timestamp).

Modified long

When the font was last modified (as a raw timestamp).

MacStyle ushort

Mac style flags: bit 0 = bold, bit 1 = italic, etc.

LowestRecPPEM ushort

Smallest readable size in pixels per em.

Properties

Created

When the font was created (as a raw timestamp).

public long Created { get; init; }

Property Value

long

CreatedUtc

Font creation date as a UTC DateTime.

public DateTime CreatedUtc { get; }

Property Value

DateTime

IndexToLocFormat

How glyph offsets are stored: 0 = short (16-bit), 1 = long (32-bit).

public int IndexToLocFormat { get; init; }

Property Value

int

LowestRecPPEM

Smallest readable size in pixels per em.

public ushort LowestRecPPEM { get; init; }

Property Value

ushort

MacStyle

Mac style flags: bit 0 = bold, bit 1 = italic, etc.

public ushort MacStyle { get; init; }

Property Value

ushort

Modified

When the font was last modified (as a raw timestamp).

public long Modified { get; init; }

Property Value

long

ModifiedUtc

Font modification date as a UTC DateTime.

public DateTime ModifiedUtc { get; }

Property Value

DateTime

UnitsPerEm

Design units per em square (typically 1000 or 2048).

public int UnitsPerEm { get; init; }

Property Value

int

XMax

Right edge of the bounding box that fits all glyphs.

public int XMax { get; init; }

Property Value

int

XMin

Left edge of the bounding box that fits all glyphs.

public int XMin { get; init; }

Property Value

int

YMax

Top edge of the bounding box that fits all glyphs.

public int YMax { get; init; }

Property Value

int

YMin

Bottom edge of the bounding box that fits all glyphs.

public int YMin { get; init; }

Property Value

int