Skip to content

Jimp Browser with Web Workers issue when loading font  #289

@JOscarEduardo

Description

@JOscarEduardo

Hi, guys!

Jimp is amazing! I am using it in the server and also in the browser. Recently I decided to use it inside of a web worker. However, when I do that, the Jimp.loadFont fails when trying to load a font. The message is:

Error: error parsing font document is not defined
    at Object.callback (jimp.js:4657)
    at cbOnce (jimp.js:8445)
    at loadFunc (jimp.js:8449)
    at XMLHttpRequest.readystatechange (jimp.js:8445)

I noticed, in the network pane of chrome console, that the .fnt file is loading correctly. However, the .png file doesn't even appear in the network pane.

I used the same calls and paths (native fonts) that are currently in use and working properly without the Web Worker.

Any hints?

Thanks!

Oscar

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions