lbprint icon indicating copy to clipboard operation
lbprint copied to clipboard

Drop use of node.js canvas package.

Open puzrin opened this issue 3 years ago • 2 comments

Node's canvas is very fragile and flaky. It's better to use something more solid to render texts.

For example, harfbuzz OR pango webassembly build (pure FreeType is not enougth for full kerning support and other features).

puzrin avatar Jun 02 '21 12:06 puzrin

You can try https://github.com/Brooooooklyn/canvas, which is more stable.

For the WASM version of harfbuzz, you can look at https://github.com/harfbuzz/harfbuzzjs

yisibl avatar Mar 08 '22 03:03 yisibl

Thank you for info. harbuffjs + freetype wasm builds look the most promissing. No time for rework at current moment.

puzrin avatar Mar 08 '22 05:03 puzrin

Switched to skr canvas, now everything works

puzrin avatar Feb 18 '23 20:02 puzrin

Nice work!

yisibl avatar Feb 20 '23 13:02 yisibl