News for hackers. Stuff that matters.
Re:3D + 2D: Testing out my cross-platform WASM graphics engine by ronyeh on Tuesday April 02, 2024 @04:06PM (#39910298)
Awesome project. What are you planning for text and font support? Some graphics engines don’t support all the ways you might want to display text. Will we be able to load OTF or WOFF2 files and display arbitrary strings? :-)
Re:3D + 2D: Testing out my cross-platform WASM graphics engine by seanisom on Tuesday April 02, 2024 @04:30PM (#39910543)
Thanks! I haven't looked deeply into font yet, but I've always been partial to HarfBuzz for shaping, so will probably build on top of that. It also has an experimental Wasm shaper which certainly served as a bit of inspiration for the design of this.
Re:3D + 2D: Testing out my cross-platform WASM graphics engine by ronyeh on Tuesday April 02, 2024 @04:35PM (#39910583)
Nice! Looking forward to your alpha release. (And eventual HarfBuzz integration.)
Re:3D + 2D: Testing out my cross-platform WASM graphics engine by spuzvabob on Wednesday April 03, 2024 @04:51AM (#39914961)
There is a well maintained Wasm build of harfbuzz: <https://github.com/harfbuzz/harfbuzzjs> with both OpenType and AAT shapers support, which should be enough but you can also provide your own shaper implementation in Wasm yes.

We're successfully using Wasm harfbuzz to render text in a web-based design tool with relatively high usage so there should be no issues integrating it :)

Re:3D + 2D: Testing out my cross-platform WASM graphics engine by DrScientist on Wednesday April 03, 2024 @06:17AM (#39915517)
Second that - while there are a lot of graphics libs out there - text rendering support always seems to be lagging.

Decent support there would be a differentiator in my view.