all files / fontkit/src/tables/ avar.coffee

100% Statements 5/5
100% Branches 0/0
100% Functions 0/0
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17                        
r = require 'restructure'
 
shortFrac = new r.Fixed 16, 'BE', 14
 
Correspondence = new r.Struct
  fromCoord: shortFrac
  toCoord: shortFrac
 
Segment = new r.Struct
  pairCount: r.uint16
  correspondence: new r.Array Correspondence, 'pairCount'
 
module.exports = new r.Struct
  version: r.fixed32
  axisCount: r.uint32
  segment: new r.Array Segment, 'axisCount'