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

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.

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

Fields

TableTag

The table tag for the gvar table.

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

Properties

AxisCount

Number of variation axes (matches fvar axis count).

Declaration
public int AxisCount { get; }
Property Value
Type Description
int

GlyphCount

Number of glyphs in the font (matches maxp.numGlyphs).

Declaration
public int GlyphCount { get; }
Property Value
Type Description
int

MajorVersion

Major version of the gvar table (should be 1).

Declaration
public int MajorVersion { get; }
Property Value
Type Description
int

MinorVersion

Minor version of the gvar table (should be 0).

Declaration
public int MinorVersion { get; }
Property Value
Type Description
int

SharedTupleCount

Number of shared tuple records in the shared tuple table.

Declaration
public int SharedTupleCount { get; }
Property Value
Type Description
int

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
Type Description
byte[]

Parse(byte[])

Parses the "gvar" table from its raw bytes.

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

DR-IT Software documentation

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

Generated by DocFX