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

100% Statements 4/4
100% Branches 0/0
100% Functions 1/1
100% Lines 4/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16                        
r = require 'restructure'
 
ImageTable = new r.Struct
  ppem: r.uint16
  resolution: r.uint16
  imageOffsets: new r.Array(new r.Pointer(r.uint32, 'void'), -> @parent.parent.maxp.numGlyphs + 1)
 
# This is the Apple sbix table, used by the "Apple Color Emoji" font.
# It includes several image tables with images for each bitmap glyph
# of several different sizes.
module.exports = new r.Struct
  version: r.uint16
  flags: new r.Bitfield(r.uint16, ['renderOutlines'])
  numImgTables: r.uint32
  imageTables: new r.Array(new r.Pointer(r.uint32, ImageTable), 'numImgTables')