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

Class TtfAvarTable

Parsed OpenType "avar" (axis variations) table. Stores piecewise-linear segment maps that remap default-normalized axis values to final normalized values. Ref: OpenType spec §table-avar.

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

Fields

TableTag

The table tag for the avar table.

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

Properties

SegmentCount

Number of segment maps (one per variation axis, in fvar order).

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

Methods

ApplySegmentMap(int, double)

Applies the avar piecewise-linear segment map for the given axis index to normalizedValue (a default-normalized value in [-1, 1]). Returns normalizedValue unchanged if the axis index is out of range or no segment map is defined for it.

Declaration
public double ApplySegmentMap(int axisIndex, double normalizedValue)
Parameters
Type Name Description
int axisIndex
double normalizedValue
Returns
Type Description
double

Parse(byte[])

Parses the "avar" table from its raw bytes.

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

DR-IT Software documentation

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

Generated by DocFX