paulzi/svg-text-to-path

Font "IBM Plex Mono" causes error

perekrestov-igor opened this issue · 0 comments

Attempt to use font "IBM Plex Mono" causes error

RangeError: Offset is outside the bounds of the DataView
    at DataView.getInt16 (<anonymous>)
    at DecodeStream.<computed> [as readInt16BE] (DecodeStream.js:72:29)
    at NumberT.decode (Number.js:20:31)
    at Struct._parseFields (Struct.js:41:20)
    at Struct.decode (Struct.js:12:10)
    at $69aac16029968692$export$2e2bcd8739ae039._getCBox (TTFGlyph.js:79:28)
    at $69aac16029968692$export$2e2bcd8739ae039._getMetrics (TTFGlyph.js:318:21)
    at get advanceWidth (Glyph.js:146:17)
    at descriptor.get (decorators.js:10:23)
    at LayoutEngine.js:92:79

Font source:

@import "https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@100;200;300;400;500;600;700&display=swap";