Giter Club home page Giter Club logo

Comments (7)

Pomax avatar Pomax commented on July 2, 2024

it you're pasting blocks of code, rather than using single backticks for inline code, you can use three backticks on their own line to start a code block that preserves newlines, and then end the block with another three backticks on their own line.

from fontkit.

Pomax avatar Pomax commented on July 2, 2024

running locally I get the same result

$> node test

node_modules\brotli\build\decode.js:1
(function (exports, require, module, __filename, __dirname) { function e(a){throw a;}var j=void 0,m=!0,p=null,s=!1,t,v={};v.readBinary=require("../src/read_memory");v||(v=eval("(function() { try { return Module || {} } c
atch(e) { return {} } })()"));var aa={},w;for(w in v)v.hasOwnProperty(w)&&(aa[w]=v[w]);var ba="object"===typeof process&&"function"===typeof require,ca="object"===typeof window,da="function"===typeof importScripts,ea=!ca
&&!ba&&!da;
                                                                            ^

Error: Not a fixed size
    at Object.exports.resolveLength (node_modules\restructure\src\utils.js:19:13)
    at ArrayT.decode (node_modules\restructure\src\Array.js:22:24)
    at VersionedStruct.Struct._parseFields (node_modules\restructure\src\Struct.js:53:22)
    at VersionedStruct.decode (node_modules\restructure\src\VersionedStruct.js:42:12)
    at node_modules\restructure\src\Pointer.js:69:30
    at CFFPointer.Pointer.decode (node_modules\restructure\src\Pointer.js:79:16)
    at CFFPointer.decode (node_modules\fontkit\src\cff\CFFPointer.js:30:42)
    at decodeOperands (node_modules\fontkit\src\cff\CFFDict.js:36:21)
    at CFFDict.decode (node_modules\fontkit\src\cff\CFFDict.js:96:27)
    at CFFIndex.decode (node_modules\fontkit\src\cff\CFFIndex.js:42:30)

Not quite sure why the error occurs in what appears to be the brotli decoder for a font that is not packed as a WOFF2 though...

from fontkit.

defue avatar defue commented on July 2, 2024

Any chances it will be fixed?

from fontkit.

devongovett avatar devongovett commented on July 2, 2024

Sorry, I haven't had time yet. I'll try to look today.

from fontkit.

devongovett avatar devongovett commented on July 2, 2024

Should be fixed by the above PR. Published to npm as v1.2.1. Sorry for the delay in looking at this!

from fontkit.

devongovett avatar devongovett commented on July 2, 2024

As for the brotli decoder appearing in the stack trace, that's due to emscripten eating all JS errors. Pretty annoying.

from fontkit.

defue avatar defue commented on July 2, 2024

devongovett, thank you very much for the fix!

from fontkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.