14 ms·
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 ab
by ronyeh 3y ago
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? :-)
- seanisom 3y agoThanks! 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.
- ronyeh 3y agoNice! Looking forward to your alpha release. (And eventual HarfBuzz integration.)
- spuzvabob 3y agoThere is a well maintained Wasm build of harfbuzz: <https://github.com/harfbuzz/harfbuzzjs 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 :)
- DrScientist 3y agoSecond 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.