Code coverage report for fontkit/src/tables/vmtx.coffee

Statements: 100% (5 / 5)      Branches: 100% (0 / 0)      Functions: 100% (2 / 2)      Lines: 100% (5 / 5)      Ignored: none     

All files » fontkit/src/tables/ » vmtx.coffee
1 2 3 4 5 6 7 8 9 101   1         1 1 1
r = require 'restructure'
 
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
module.exports = new r.Struct
  metrics:  new r.LazyArray(VmtxEntry, -> @parent.vhea.numberOfMetrics)
  bearings: new r.LazyArray(r.int16, -> @parent.maxp.numGlyphs - @parent.vhea.numberOfMetrics)