| Current Path : /home/deltalab/PMS/partner-manager-backend/node_modules/@foliojs-fork/fontkit/src/tables/ |
| Current File : //home/deltalab/PMS/partner-manager-backend/node_modules/@foliojs-fork/fontkit/src/tables/vmtx.js |
import r from '@foliojs-fork/restructure';
let VmtxEntry = new r.Struct({
advance: r.uint16, // The advance height of the glyph
bearing: r.int16 // The top sidebearing of the glyph
});
// Vertical Metrics Table
export default new r.Struct({
metrics: new r.LazyArray(VmtxEntry, t => t.parent.vhea.numberOfMetrics),
bearings: new r.LazyArray(r.int16, t => t.parent.maxp.numGlyphs - t.parent.vhea.numberOfMetrics)
});