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.
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
Version05
Raw version field value for version 0.5 (CFF/OTF fonts).
Declaration
public const uint Version05 = 20480
Field Value
Version10
Raw version field value for version 1.0 (TrueType/glyf fonts).
Declaration
public const uint Version10 = 65536
Field Value
Properties
MaxComponentContours
Maximum number of contours in a composite glyph (v1.0 only).
Declaration
public ushort? MaxComponentContours { get; }
Property Value
MaxComponentDepth
Maximum nesting depth of composite glyphs (v1.0 only).
Declaration
public ushort? MaxComponentDepth { get; }
Property Value
MaxComponentElements
Maximum number of components in a composite glyph (v1.0 only).
Declaration
public ushort? MaxComponentElements { get; }
Property Value
MaxComponentPoints
Maximum number of points in a composite glyph (v1.0 only).
Declaration
public ushort? MaxComponentPoints { get; }
Property Value
MaxContours
Maximum number of contours in a non-composite glyph (v1.0 only).
Declaration
public ushort? MaxContours { get; }
Property Value
MaxFunctionDefs
Maximum number of function definitions (v1.0 only).
Declaration
public ushort? MaxFunctionDefs { get; }
Property Value
MaxInstructionDefs
Maximum number of instruction definitions (v1.0 only).
Declaration
public ushort? MaxInstructionDefs { get; }
Property Value
MaxPoints
Maximum number of points in a non-composite glyph (v1.0 only).
Declaration
public ushort? MaxPoints { get; }
Property Value
MaxSizeOfInstructions
Maximum size of hinting instruction stream per glyph (v1.0 only).
Declaration
public ushort? MaxSizeOfInstructions { get; }
Property Value
MaxStackElements
Maximum stack depth for hinting instructions (v1.0 only).
Declaration
public ushort? MaxStackElements { get; }
Property Value
MaxStorage
Maximum number of storage area locations (v1.0 only).
Declaration
public ushort? MaxStorage { get; }
Property Value
MaxTwilightPoints
Maximum number of twilight zone points (v1.0 only).
Declaration
public ushort? MaxTwilightPoints { get; }
Property Value
MaxZones
Maximum number of hinting zones; 1 or 2 (v1.0 only).
Declaration
public ushort? MaxZones { get; }
Property Value
NumGlyphs
Total number of glyphs in the font.
Declaration
public ushort NumGlyphs { get; }
Property Value
Version
Declaration
public uint Version { get; }
Property Value
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