Show HN: Handwriter.ttf – Handwriting Synthesis with Harfbuzz WASM
github.com
Show HN: Handwriter.ttf – Handwriting Synthesis with Harfbuzz WASM
1–10 of 60 posts
Re: Show HN: Handwriter.ttf – Handwriting Synthesis with Harfbuzz WASM
#2as the demo video shows, it's probably not something you want to have in between you and the ability to scroll a web page or close a tab. but i guess using harfbuzz now means we're buying into a turing-complete virtual machine running an arbitrary program in order to display a glyph. how seriously crippled are the harfbuzzless rendering paths? i'm assuming opting out of harfbuzz means opting out of arabic, devanagari and other indic scripts, etc.? is there a less out-of-control alternative that doesn't leave two billion people out in the cold?
Re: Show HN: Handwriter.ttf – Handwriting Synthesis with Harfbuzz WASM
#3Re: Show HN: Handwriter.ttf – Handwriting Synthesis with Harfbuzz WASM
#4I wonder what makes SIMD an improvement here - in the end it all boils down to TTF bytecode and I don't think this comes with SIMD instructions, right?
Re: Show HN: Handwriter.ttf – Handwriting Synthesis with Harfbuzz WASM
#5Re: Show HN: Handwriter.ttf – Handwriting Synthesis with Harfbuzz WASM
#6I wonder what makes SIMD an improvement here - in the end it all boils down to TTF bytecode and I don't think this comes with SIMD instructions, right?
wasm has SIMD extension https://github.com/WebAssembly/simd/blob/master/proposals/si... . You can use them even in browsers (e.g. Chrome >= 91)
Re: Show HN: Handwriter.ttf – Handwriting Synthesis with Harfbuzz WASM
#7this is amazing! i'm guessing you can probably get it to antialias without much more work as the demo video shows, it's probably not something you want to have in between you and the ability to scroll a web page or close a tab. but i guess using harfbuzz now means we're buying into a turing-complete virtual machine running an arbitrary program in order to display a glyph. how seriously crippled are the harfbuzzless r…
WASM shaper is still experimental and not yet shipped in and products, not before more limitation carried out as I think. So I'm not too worried about it.
Re: Show HN: Handwriter.ttf – Handwriting Synthesis with Harfbuzz WASM
#8Re: Show HN: Handwriter.ttf – Handwriting Synthesis with Harfbuzz WASM
#9I don't get it, why there's no link to a GitHub pages website to test the thing?
As convenience, I built a Docker image that packs both the ttf file and the modified gedit together. You can try it out via `make run` as stated in the instructions.
Re: Show HN: Handwriter.ttf – Handwriting Synthesis with Harfbuzz WASM
#10Earlier quoted context omitted.
wasm has SIMD extension https://github.com/WebAssembly/simd/blob/master/proposals/si... . You can use them even in browsers (e.g. Chrome >= 91)
OP is asking how SIMD is beneficial to this specific application. If there's a small neural network involved then evaluating that is probably a good place to use SIMD.