{"version":3,"sources":["webpack:///./node_modules/lib-font/src/opentype/tables/simple/other/hdmx.js"],"names":["hdmx","constructor","dict","dataview","tables","p","super","numGlyphs","hmtx","this","version","uint16","numRecords","int16","sizeDeviceRecord","int32","records","Array","map","_","DeviceRecord","pixelSize","uint8","maxWidth","widths","readBytes"],"mappings":"2FAAA,uDAOA,MAAMA,UAAa,IACjBC,YAAYC,EAAMC,EAAUC,GAC1B,MACEC,EADaC,MAAMJ,EAAMC,GACdE,EACPE,EAAYH,EAAOI,KAAKD,UAC9BE,KAAKC,QAAUL,EAAEM,OACjBF,KAAKG,WAAaP,EAAEQ,MACpBJ,KAAKK,iBAAmBT,EAAEU,MAC1BN,KAAKO,QAAU,IAAI,IAAIC,MAAML,aAAaM,KAAIC,GAAK,IAAIC,EAAaf,EAAGE,IACzE,EAEF,MAAMa,EACJnB,YAAYI,EAAGE,GACbE,KAAKY,UAAYhB,EAAEiB,MACnBb,KAAKc,SAAWlB,EAAEiB,MAClBb,KAAKe,OAASnB,EAAEoB,UAAUlB,EAC5B,E","file":"js/32-40293167575460f30eb9.chunk.js","sourcesContent":["import { SimpleTable } from \"../../simple-table.js\";\n\n/**\n * The OpenType `hdmx` table.\n *\n * See https://docs.microsoft.com/en-us/typography/opentype/spec/hdmx\n */\nclass hdmx extends SimpleTable {\n constructor(dict, dataview, tables) {\n const _super = super(dict, dataview),\n p = _super.p;\n const numGlyphs = tables.hmtx.numGlyphs;\n this.version = p.uint16;\n this.numRecords = p.int16;\n this.sizeDeviceRecord = p.int32;\n this.records = [...new Array(numRecords)].map(_ => new DeviceRecord(p, numGlyphs));\n }\n}\nclass DeviceRecord {\n constructor(p, numGlyphs) {\n this.pixelSize = p.uint8;\n this.maxWidth = p.uint8;\n this.widths = p.readBytes(numGlyphs);\n }\n}\nexport { hdmx };"],"sourceRoot":""}