parseOpenTypeTableEntries top-level property

Function parseOpenTypeTableEntries
getter/setter pair

Parses OpenType table entries. @param {DataView} @param {Number} @return {Object[]}

Implementation

Function parseOpenTypeTableEntries = (data, numTables) {
    var tableEntries = [];
    var p = 12;
    for (var i = 0; i < numTables; i += 1) {
        var tag = getTag(data, p);
        var checksum = getULong(data, p + 4);
        var offset = getULong(data, p + 8);
        var length = getULong(data, p + 12);
        tableEntries.add({"tag": tag, "checksum": checksum, "offset": offset, "length": length, "compression": false});
        p += 16;
    }

    return tableEntries;
};