Your IP : 216.73.216.43


Current Path : /home/deltalab/PMS/partner-manager-backend/node_modules/@foliojs-fork/fontkit/src/tables/
Upload File :
Current File : //home/deltalab/PMS/partner-manager-backend/node_modules/@foliojs-fork/fontkit/src/tables/hdmx.js

import r from '@foliojs-fork/restructure';

let DeviceRecord = new r.Struct({
  pixelSize:      r.uint8,
  maximumWidth:   r.uint8,
  widths:         new r.Array(r.uint8, t => t.parent.parent.maxp.numGlyphs)
});

// The Horizontal Device Metrics table stores integer advance widths scaled to particular pixel sizes
export default new r.Struct({
  version:            r.uint16,
  numRecords:         r.int16,
  sizeDeviceRecord:   r.int32,
  records:            new r.Array(DeviceRecord, 'numRecords')
});