parseFvarInstance function
dynamic
parseFvarInstance(
- dynamic data,
- dynamic start,
- dynamic axes,
- dynamic names,
Implementation
parseFvarInstance(data, start, axes, names) {
var inst = {};
var p = new Parser(data, start);
inst["name"] = names[p.parseUShort()] ?? {};
p.skip('uShort', 1); // reserved for flags; no values defined
inst["coordinates"] = {};
for (var i = 0; i < axes.length; ++i) {
inst["coordinates"][axes[i].tag] = p.parseFixed();
}
return inst;
}