parseFvarAxis function

dynamic parseFvarAxis(
  1. dynamic data,
  2. dynamic start,
  3. dynamic names
)

Implementation

parseFvarAxis(data, start, names) {
    var axis = {};
    var p = new Parser(data, start);
    axis["tag"] = p.parseTag();
    axis["minValue"] = p.parseFixed();
    axis["defaultValue"] = p.parseFixed();
    axis["maxValue"] = p.parseFixed();
    p.skip('uShort', 1);  // reserved for flags; no values defined
    axis["name"] = names[p.parseUShort()] ?? {};
    return axis;
}