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

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20                                    
r = require 'restructure'
 
# PCL 5 Table
# NOTE: The PCLT table is strongly discouraged for OpenType fonts with TrueType outlines
module.exports = new r.Struct
  version:              r.uint16
  fontNumber:           r.uint32
  pitch:                r.uint16
  xHeight:              r.uint16
  style:                r.uint16
  typeFamily:           r.uint16
  capHeight:            r.uint16
  symbolSet:            r.uint16
  typeface:             new r.String(16)
  characterComplement:  new r.String(8)
  fileName:             new r.String(6)
  strokeWeight:         new r.String(1)
  widthType:            new r.String(1)
  serifStyle:           r.uint8
  reserved:             new r.Reserved(r.uint8)