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.
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
Properties
SegmentCount
Number of segment maps (one per variation axis, in fvar order).
Declaration
public int SegmentCount { get; }
Property Value
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
Parse(byte[])
Parses the "avar" table from its raw bytes.
Declaration
public static TtfAvarTable Parse(byte[] rawBytes)
Parameters
| Type |
Name |
Description |
| byte[] |
rawBytes |
|
Returns