Skip to content

TTF file on Github seems not the same from the https://www.jetbrains.com/lp/mono/ #717

Open
@1Jesper1

Description

@1Jesper1

https://github.com/JetBrains/JetBrainsMono/blob/master/fonts/ttf/JetBrainsMono-Regular.ttf seems to work for us.
But https://download.jetbrains.com/fonts/JetBrainsMono-2.304.zip JetBrainsMono-Regular.tff gives us an error.
The error we experience is when we use 2 .. dots in a pdf.

react-pdf.browser.es.js:4283 RangeError: Offset is outside the bounds of the DataView
at DataView.prototype.getInt16 ()
at push../node_modules/restructure/src/DecodeStream.js.DecodeStream. [as readInt16BE] (DecodeStream.js:72:1)
at NumberT.decode (Number.js:20:1)
at Struct._parseFields (Struct.js:41:1)
at Struct.decode (Struct.js:12:1)
at $69aac16029968692$export$2e2bcd8739ae039._getCBox (browser-module.mjs:10869:1)
at $69aac16029968692$export$2e2bcd8739ae039._getMetrics (browser-module.mjs:11037:1)
at get advanceWidth (browser-module.mjs:10727:1)
at descriptor.get (browser-module.mjs:55:1)
at browser-module.mjs:10104:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions