• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class TtfHheaTable

Parsed OpenType "hhea" table (horizontal header). Contains metrics that describe the overall horizontal layout of the font. Ref: OpenType spec §5.2.3 / TrueType Reference §'hhea'.

Inheritance
object
TtfTableBase
TtfHheaTable
Inherited Members
TtfTableBase.Tag
TtfTableBase.RawBytes
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DRIT.Drawing.Font.Ttf.Tables
Assembly: DRIT.Drawing.dll
Syntax
public sealed class TtfHheaTable : TtfTableBase

Fields

TableTag

The table tag for the hhea table.

Declaration
public const string TableTag = "hhea"
Field Value
Type Description
string

Properties

AdvanceWidthMax

Maximum advance width across all glyphs.

Declaration
public ushort AdvanceWidthMax { get; }
Property Value
Type Description
ushort

Ascender

Distance from baseline to top of tallest ascender, in design units. Positive value.

Declaration
public short Ascender { get; }
Property Value
Type Description
short

Descender

Distance from baseline to bottom of lowest descender, in design units. Negative value (below baseline).

Declaration
public short Descender { get; }
Property Value
Type Description
short

LineGap

Typographic line gap (additional line spacing beyond Ascender − Descender), in design units.

Declaration
public short LineGap { get; }
Property Value
Type Description
short

MinLsb

Minimum left side-bearing across all glyphs.

Declaration
public short MinLsb { get; }
Property Value
Type Description
short

MinRsb

Minimum right side-bearing across all glyphs.

Declaration
public short MinRsb { get; }
Property Value
Type Description
short

NumberOfHMetrics

Number of hMetrics entries in the "hmtx" table. Glyphs with index ≥ this value share the last advance width.

Declaration
public ushort NumberOfHMetrics { get; }
Property Value
Type Description
ushort

XMaxExtent

Maximum x extent (xMin + advanceWidth) across all glyphs.

Declaration
public short XMaxExtent { get; }
Property Value
Type Description
short

Methods

Parse(byte[])

Parses the "hhea" table from its raw bytes.

Declaration
public static TtfHheaTable Parse(byte[] rawBytes)
Parameters
Type Name Description
byte[] rawBytes
Returns
Type Description
TtfHheaTable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX