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

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

All files » fontkit/src/tables/ » hhea.coffee
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 181     1                            
r = require 'restructure'
 
# horizontal header
module.exports = new r.Struct
  version:              r.int32
  ascent:               r.int16   # Distance from baseline of highest ascender
  descent:              r.int16   # Distance from baseline of lowest descender
  lineGap:              r.int16   # Typographic line gap
  advanceWidthMax:      r.uint16  # Maximum advance width value in 'hmtx' table
  minLeftSideBearing:   r.int16   # Maximum advance width value in 'hmtx' table
  minRightSideBearing:  r.int16   # Minimum right sidebearing value
  xMaxExtent:           r.int16
  caretSlopeRise:       r.int16   # Used to calculate the slope of the cursor (rise/run); 1 for vertical
  caretSlopeRun:        r.int16   # 0 for vertical
  caretOffset:          r.int16   # Set to 0 for non-slanted fonts
  reserved:             new r.Reserved(r.int16, 4)
  metricDataFormat:     r.int16   # 0 for current format
  numberOfMetrics:      r.uint16  # Number of advance widths in 'hmtx' table