Table of Contents

Class HheaTable

Namespace
KernSmith.Font.Tables
Assembly
KernSmith.dll

Data from the font's 'hhea' table: vertical extents and horizontal spacing limits.

public sealed record HheaTable : IEquatable<HheaTable>
Inheritance
HheaTable
Implements
Inherited Members

Constructors

HheaTable(int, int, int, int, int, short, short, short)

Data from the font's 'hhea' table: vertical extents and horizontal spacing limits.

public HheaTable(int Ascender, int Descender, int LineGap, int AdvanceWidthMax, int NumberOfHMetrics, short MinLeftSideBearing = 0, short MinRightSideBearing = 0, short XMaxExtent = 0)

Parameters

Ascender int

Maximum ascent above the baseline, in font units.

Descender int

Maximum descent below the baseline, in font units (usually negative).

LineGap int

Additional inter-line spacing, in font units.

AdvanceWidthMax int

Maximum advance width across all glyphs, in font units.

NumberOfHMetrics int

Number of entries in the horizontal metrics (hmtx) table.

MinLeftSideBearing short

Minimum left side bearing across all glyphs, in font units.

MinRightSideBearing short

Minimum right side bearing across all glyphs, in font units.

XMaxExtent short

Maximum horizontal extent (lsb + (xMax - xMin)), in font units.

Properties

AdvanceWidthMax

Maximum advance width across all glyphs, in font units.

public int AdvanceWidthMax { get; init; }

Property Value

int

Ascender

Maximum ascent above the baseline, in font units.

public int Ascender { get; init; }

Property Value

int

Descender

Maximum descent below the baseline, in font units (usually negative).

public int Descender { get; init; }

Property Value

int

LineGap

Additional inter-line spacing, in font units.

public int LineGap { get; init; }

Property Value

int

MinLeftSideBearing

Minimum left side bearing across all glyphs, in font units.

public short MinLeftSideBearing { get; init; }

Property Value

short

MinRightSideBearing

Minimum right side bearing across all glyphs, in font units.

public short MinRightSideBearing { get; init; }

Property Value

short

NumberOfHMetrics

Number of entries in the horizontal metrics (hmtx) table.

public int NumberOfHMetrics { get; init; }

Property Value

int

XMaxExtent

Maximum horizontal extent (lsb + (xMax - xMin)), in font units.

public short XMaxExtent { get; init; }

Property Value

short