Class TtfHeadTable
Parsed OpenType "head" table (font header). Ref: OpenType spec §5.2.1 / TrueType Reference §'head'.
Inherited Members
Namespace: DRIT.Drawing.Font.Ttf.Tables
Assembly: DRIT.Drawing.dll
Syntax
public sealed class TtfHeadTable : TtfTableBase
Fields
TableTag
The table tag for the head table.
Declaration
public const string TableTag = "head"
Field Value
| Type | Description |
|---|---|
| string |
Properties
Bounds
Design-space bounding box that encloses all glyphs.
Declaration
public GlyphBoundingBox Bounds { get; }
Property Value
| Type | Description |
|---|---|
| GlyphBoundingBox |
Created
Creation timestamp (seconds since 1904-01-01 00:00:00 UTC).
Declaration
public long Created { get; }
Property Value
| Type | Description |
|---|---|
| long |
IndexToLocFormat
Determines the format of the "loca" table: 0 = short offsets (×2); 1 = long offsets.
Declaration
public short IndexToLocFormat { get; }
Property Value
| Type | Description |
|---|---|
| short |
MacStyle
Bit flags describing font style: bit 0=Bold, 1=Italic, 2=Underline, 3=Outline, 4=Shadow, 5=Condensed, 6=Extended.
Declaration
public ushort MacStyle { get; }
Property Value
| Type | Description |
|---|---|
| ushort |
Modified
Last-modified timestamp (seconds since 1904-01-01 00:00:00 UTC).
Declaration
public long Modified { get; }
Property Value
| Type | Description |
|---|---|
| long |
UnitsPerEm
Units per EM square. Typically 1000 or 2048.
Declaration
public double UnitsPerEm { get; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
Parse(byte[])
Parses the "head" table from its raw bytes.
Declaration
public static TtfHeadTable Parse(byte[] rawBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | rawBytes |
Returns
| Type | Description |
|---|---|
| TtfHeadTable |