parseLookup1 function
dynamic
parseLookup1(
- dynamic scope
Implementation
parseLookup1(scope) {
var start = scope.offset + scope.relativeOffset;
var posformat = scope.parseUShort();
if (posformat == 1) {
return {
"posFormat": 1,
"coverage": scope.parsePointer(Parser.coverage),
"value": scope.parseValueRecord()
};
} else if (posformat == 2) {
return {
"posFormat": 2,
"coverage": scope.parsePointer(Parser.coverage),
"values": scope.parseValueRecordList()
};
}
assertfn(false, '0x ${start.toString()}: posformat: ${posformat} GPOS lookup type 1 format must be 1 or 2.');
}