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

Statements: 100% (7 / 7)      Branches: 100% (0 / 0)      Functions: 100% (3 / 3)      Lines: 100% (7 / 7)      Ignored: none     

All files » fontkit/src/tables/ » fvar.coffee
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 281   1             10   1   50   50   1                    
r = require 'restructure'
 
Axis = new r.Struct
  axisTag: new r.String 4
  minValue: r.fixed32
  defaultValue: r.fixed32
  maxValue: r.fixed32
  flags: r.uint16
  nameID: r.uint16
  name: -> @parent.parent.name.records.fontFeatures?.English?[@nameID]
  
Instance = new r.Struct
  nameID: r.uint16
  name: -> @parent.parent.name.records.fontFeatures?.English?[@nameID]
  flags: r.uint16
  coord: new r.Array r.fixed32, -> @parent.axisCount
 
module.exports = new r.Struct
  version: r.fixed32
  offsetToData: r.uint16
  countSizePairs: r.uint16
  axisCount: r.uint16
  axisSize: r.uint16
  instanceCount: r.uint16
  instanceSize: r.uint16
  axis: new r.Array Axis, 'axisCount'
  instance: new r.Array Instance, 'instanceCount'