I did it with the Harfbuzz shaper which now have experimental support for embedding WebAssembly programs to shape fonts.
Talk where I show it off: https://www.youtube.com/watch?v=Ms1Drb9Vw9M
Source code: https://github.com/Erk-/programmable-fonts
You can also see actual uses of this WebAssembly embedding to show that is not just for fun here: https://github.com/harfbuzz/harfbuzz-wasm-examples
This is precisely the sort of beautiful thing I love finding on HN.[a]
Your work put a smile on my face.
Thank you for sharing it here!
---
[a] For those here who only want to see the demo, it starts at 22:50: https://youtu.be/Ms1Drb9Vw9M?t=1370
---
PS. I also submitted your demo to HN. I think it deserves its own post: >>40737961
(The "historical exploration" of type, and typesetting, even if an introduction, is great ...)
repo: https://github.com/hsfzxjy/Bad-Apple-Font
youtube[1]: https://www.youtube.com/watch?v=GF2sn2DXjlA
youtube[2]: https://www.youtube.com/watch?v=qFd8vsr8nag
At the time it was also discussed on here at [1].
[0]: https://blog.erk.dev/posts/anifont/
[1]: >>37317055