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

Class TtfMaxpTable

Parsed OpenType "maxp" table (maximum profile). The version 0.5 variant contains only NumGlyphs; version 1.0 adds glyph-program-stack and component limits used by the TrueType hinting interpreter. Ref: OpenType spec §5.2.6.

Inheritance
object
TtfTableBase
TtfMaxpTable
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 TtfMaxpTable : TtfTableBase

Fields

TableTag

The table tag for the maxp table.

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

Version05

Raw version field value for version 0.5 (CFF/OTF fonts).

Declaration
public const uint Version05 = 20480
Field Value
Type Description
uint

Version10

Raw version field value for version 1.0 (TrueType/glyf fonts).

Declaration
public const uint Version10 = 65536
Field Value
Type Description
uint

Properties

MaxComponentContours

Maximum number of contours in a composite glyph (v1.0 only).

Declaration
public ushort? MaxComponentContours { get; }
Property Value
Type Description
ushort?

MaxComponentDepth

Maximum nesting depth of composite glyphs (v1.0 only).

Declaration
public ushort? MaxComponentDepth { get; }
Property Value
Type Description
ushort?

MaxComponentElements

Maximum number of components in a composite glyph (v1.0 only).

Declaration
public ushort? MaxComponentElements { get; }
Property Value
Type Description
ushort?

MaxComponentPoints

Maximum number of points in a composite glyph (v1.0 only).

Declaration
public ushort? MaxComponentPoints { get; }
Property Value
Type Description
ushort?

MaxContours

Maximum number of contours in a non-composite glyph (v1.0 only).

Declaration
public ushort? MaxContours { get; }
Property Value
Type Description
ushort?

MaxFunctionDefs

Maximum number of function definitions (v1.0 only).

Declaration
public ushort? MaxFunctionDefs { get; }
Property Value
Type Description
ushort?

MaxInstructionDefs

Maximum number of instruction definitions (v1.0 only).

Declaration
public ushort? MaxInstructionDefs { get; }
Property Value
Type Description
ushort?

MaxPoints

Maximum number of points in a non-composite glyph (v1.0 only).

Declaration
public ushort? MaxPoints { get; }
Property Value
Type Description
ushort?

MaxSizeOfInstructions

Maximum size of hinting instruction stream per glyph (v1.0 only).

Declaration
public ushort? MaxSizeOfInstructions { get; }
Property Value
Type Description
ushort?

MaxStackElements

Maximum stack depth for hinting instructions (v1.0 only).

Declaration
public ushort? MaxStackElements { get; }
Property Value
Type Description
ushort?

MaxStorage

Maximum number of storage area locations (v1.0 only).

Declaration
public ushort? MaxStorage { get; }
Property Value
Type Description
ushort?

MaxTwilightPoints

Maximum number of twilight zone points (v1.0 only).

Declaration
public ushort? MaxTwilightPoints { get; }
Property Value
Type Description
ushort?

MaxZones

Maximum number of hinting zones; 1 or 2 (v1.0 only).

Declaration
public ushort? MaxZones { get; }
Property Value
Type Description
ushort?

NumGlyphs

Total number of glyphs in the font.

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

Version

Raw version field (see Version05 / Version10).

Declaration
public uint Version { get; }
Property Value
Type Description
uint

Methods

Parse(byte[])

Parses the "maxp" table from its raw bytes.

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

DR-IT Software documentation

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

Generated by DocFX