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

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

All files » fontkit/src/tables/ » maxp.coffee
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 191     1                              
r = require 'restructure'
 
# maxiumum profile
module.exports = new r.Struct
  version:                r.int32
  numGlyphs:              r.uint16  # The number of glyphs in the font
  maxPoints:              r.uint16  # Maximum points in a non-composite glyph
  maxContours:            r.uint16  # Maximum contours in a non-composite glyph
  maxComponentPoints:     r.uint16  # Maximum points in a composite glyph
  maxComponentContours:   r.uint16  # Maximum contours in a composite glyph
  maxZones:               r.uint16  # 1 if instructions do not use the twilight zone, 2 otherwise
  maxTwilightPoints:      r.uint16  # Maximum points used in Z0
  maxStorage:             r.uint16  # Number of Storage Area locations
  maxFunctionDefs:        r.uint16  # Number of FDEFs
  maxInstructionDefs:     r.uint16  # Number of IDEFs
  maxStackElements:       r.uint16  # Maximum stack depth
  maxSizeOfInstructions:  r.uint16  # Maximum byte count for glyph instructions
  maxComponentElements:   r.uint16  # Maximum number of components referenced at “top level” for any composite glyph
  maxComponentDepth:      r.uint16  # Maximum levels of recursion; 1 for simple components