value property

double value
final

The value assigned to this design axis.

The range of usable values depends on the specification of the axis.

While this property is represented as a double in this API (binary64), fonts use the fixed-point 16.16 format to represent the value of font variations. This means that the actual range is -32768.0 to approximately 32767.999985 and in principle the smallest increment between two values is approximately 0.000015 (1/65536).

Unfortunately for technical reasons the value is first converted to the binary32 floating point format, which only has 24 bits of precision. This means that for values outside the range -256.0 to 256.0, the smallest increment is larger than what is technically supported by OpenType. At the extreme edge of the range, the smallest increment is only approximately ±0.002.

Implementation

final double value;