makeHheaTable function

dynamic makeHheaTable(
  1. dynamic options
)

Implementation

makeHheaTable(options) {
    return new Table('hhea', [
        {"name": 'version', "type": 'FIXED', "value": 0x00010000},
        {"name": 'ascender', "type": 'FWORD', "value": 0},
        {"name": 'descender', "type": 'FWORD', "value": 0},
        {"name": 'lineGap', "type": 'FWORD', "value": 0},
        {"name": 'advanceWidthMax', "type": 'UFWORD', "value": 0},
        {"name": 'minLeftSideBearing', "type": 'FWORD', "value": 0},
        {"name": 'minRightSideBearing', "type": 'FWORD', "value": 0},
        {"name": 'xMaxExtent', "type": 'FWORD', "value": 0},
        {"name": 'caretSlopeRise', "type": 'SHORT', "value": 1},
        {"name": 'caretSlopeRun', "type": 'SHORT', "value": 0},
        {"name": 'caretOffset', "type": 'SHORT', "value": 0},
        {"name": 'reserved1', "type": 'SHORT', "value": 0},
        {"name": 'reserved2', "type": 'SHORT', "value": 0},
        {"name": 'reserved3', "type": 'SHORT', "value": 0},
        {"name": 'reserved4', "type": 'SHORT', "value": 0},
        {"name": 'metricDataFormat', "type": 'SHORT', "value": 0},
        {"name": 'numberOfHMetrics', "type": 'USHORT', "value": 0}
    ], options);
}