{"version":3,"sources":["webpack:///./node_modules/lib-font/src/opentype/tables/simple/bitmap/sbix.js"],"names":["sbix","constructor","dict","dataview","p","super","this","version","uint16","flags","numStrikes","uint32","Array","map","_","Offset32","Strike","numGlyphs","ppem","ppi"],"mappings":"2FAAA,sEAeA,MAAMA,UAAa,IACjBC,YAAYC,EAAMC,GAChB,MACEC,EADaC,MAAMH,EAAMC,GACdC,EACbE,KAAKC,QAAUH,EAAEI,OACjBF,KAAKG,MAAQL,EAAEK,MAAM,IACrBH,KAAKI,WAAaN,EAAEO,OACpB,YAAKL,KAAM,iBAAiB,IAAM,IAAI,IAAIM,MAAMN,KAAKI,aAAaG,KAAIC,GAAKV,EAAEW,YAC/E,EAKF,MAAMC,UAAe,IACnBf,YAAYG,EAAGa,GACbX,KAAKY,KAAOd,EAAEI,OACdF,KAAKa,IAAMf,EAAEI,OACb,YAAKF,KAAM,oBAAoB,IAAM,IAAI,IAAIM,MAAMK,EAAY,IAAIJ,KAAIC,GAAKV,EAAEW,YAChF,E","file":"js/15-dfc12ac1757ce7adb23c.chunk.js","sourcesContent":["import { ParsedData } from \"../../../../parser.js\";\nimport { SimpleTable } from \"../../simple-table.js\";\nimport lazy from \"../../../../lazy.js\";\n\n/**\n * The OpenType `sbix` table.\n *\n * See https://docs.microsoft.com/en-us/typography/opentype/spec/sbix\n *\n * Notes:\n * The glyph count is derived from the 'maxp' table. Advance and side-bearing\n * glyph metrics are stored in the 'hmtx' table for horizontal layout, and\n * the 'vmtx' table for vertical layout.\n *\n */\nclass sbix extends SimpleTable {\n constructor(dict, dataview) {\n const _super = super(dict, dataview),\n p = _super.p;\n this.version = p.uint16;\n this.flags = p.flags(16);\n this.numStrikes = p.uint32;\n lazy(this, `strikeOffsets`, () => [...new Array(this.numStrikes)].map(_ => p.Offset32)); // from the beginning of the 'sbix' table\n }\n\n // TODO: add a strike accessor\n}\n\nclass Strike extends ParsedData {\n constructor(p, numGlyphs) {\n this.ppem = p.uint16;\n this.ppi = p.uint16;\n lazy(this, `glyphDataOffsets`, () => [...new Array(numGlyphs + 1)].map(_ => p.Offset32)); // from the beginning of the strike data header\n }\n\n // TODO: add a glyph data accessor\n}\n\nclass GlyphData {\n constructor(p) {\n this.originOffsetX = p.int16;\n this.originOffsetY = p.int16;\n this.graphicType = p.tag;\n\n // The actual embedded graphic data has a byte length that is inferred from sequential\n // entries in the strike.glyphDataOffsets array + the fixed size (8 bytes) of the preceding fields.\n const len = 0;\n lazy(this, `data`, () => p.readBytes(len));\n\n // TODO: make this.data load in the correct data\n }\n}\n\nexport { sbix };"],"sourceRoot":""}