Class TtfGvarTable
Parsed OpenType "gvar" (glyph variations) table header.
Exposes per-glyph raw tuple variation data; full interpolation is deferred.
Ref: OpenType spec §table-gvar.
Assembly: DRIT.Drawing.dll
Syntax
public sealed class TtfGvarTable : TtfTableBase
Fields
TableTag
The table tag for the gvar table.
Declaration
public const string TableTag = "gvar"
Field Value
Properties
AxisCount
Number of variation axes (matches fvar axis count).
Declaration
public int AxisCount { get; }
Property Value
GlyphCount
Number of glyphs in the font (matches maxp.numGlyphs).
Declaration
public int GlyphCount { get; }
Property Value
MajorVersion
Major version of the gvar table (should be 1).
Declaration
public int MajorVersion { get; }
Property Value
MinorVersion
Minor version of the gvar table (should be 0).
Declaration
public int MinorVersion { get; }
Property Value
SharedTupleCount
Number of shared tuple records in the shared tuple table.
Declaration
public int SharedTupleCount { get; }
Property Value
Methods
GetGlyphVariationData(int)
Returns the raw tuple variation data blob for the given glyph, or an
empty array if the glyph has no variation data. Returns null if the
index is out of range.
Declaration
public byte[]? GetGlyphVariationData(int glyphIndex)
Parameters
| Type |
Name |
Description |
| int |
glyphIndex |
|
Returns
Parse(byte[])
Parses the "gvar" table from its raw bytes.
Declaration
public static TtfGvarTable Parse(byte[] rawBytes)
Parameters
| Type |
Name |
Description |
| byte[] |
rawBytes |
|
Returns