zlacker

[parent] [thread] 15 comments
1. erk__+(OP)[view] [source] 2024-06-20 12:21:11
I did kinda the opposite and instead of making a font out of tetris I made a font play Tetris.

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

replies(8): >>cs702+g1 >>Bluest+G7 >>Rugnir+rn >>quotem+tw >>suregl+eF >>nialv7+hS >>pred_+4T2 >>fugled+Ky7
2. cs702+g1[view] [source] 2024-06-20 12:28:59
>>erk__+(OP)
Awesome.

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

replies(1): >>redbel+s5
◧◩
3. redbel+s5[view] [source] [discussion] 2024-06-20 12:54:51
>>cs702+g1
I liked how you set your bio in the "About" section, kind of circular dependencies :)
replies(1): >>wayvey+Ji5
4. Bluest+G7[view] [source] 2024-06-20 13:07:01
>>erk__+(OP)
Incredible ...

(The Tetris pieces going up upon backspace are a riot :)

5. Rugnir+rn[view] [source] 2024-06-20 14:45:02
>>erk__+(OP)
thats absolutely bananas, awesome job. The bad apple showcase is great too.
replies(2): >>hteza+802 >>erk__+Hk2
6. quotem+tw[view] [source] 2024-06-20 15:33:18
>>erk__+(OP)
Nice demo. Really kicks all the "bytecode can never be fast --- we have to AOT everything" people in the teeth, doesn't it?
7. suregl+eF[view] [source] 2024-06-20 16:20:34
>>erk__+(OP)
Coolest thing I've seen so far this year. Demo starts at 22:55 but the whole presentation is worth watching.
replies(1): >>Bluest+ZK
◧◩
8. Bluest+ZK[view] [source] [discussion] 2024-06-20 16:55:02
>>suregl+eF
I agree. Watched the whole thing and the entire video is worth it.-

(The "historical exploration" of type, and typesetting, even if an introduction, is great ...)

9. nialv7+hS[view] [source] 2024-06-20 17:41:55
>>erk__+(OP)
You can even play Pokemon using fonts: https://www.coderelay.io/fontemon.html
◧◩
10. hteza+802[view] [source] [discussion] 2024-06-21 02:26:02
>>Rugnir+rn
If anyone else is looking for the links

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

◧◩
11. erk__+Hk2[view] [source] [discussion] 2024-06-21 06:42:28
>>Rugnir+rn
That was the first part I did, I wrote a blog about it here [0].

At the time it was also discussed on here at [1].

[0]: https://blog.erk.dev/posts/anifont/

[1]: >>37317055

12. pred_+4T2[view] [source] 2024-06-21 12:38:01
>>erk__+(OP)
You demo the result in GIMP (with a Wasm runtime linked(?)) and in the font viewer FontGoogles, and there's someone else who is playing around with it in gedit. There's no way to make use of this in, say, Firefox, yet, even though it ships with Harfbuzz, right?
replies(1): >>erk__+df3
◧◩
13. erk__+df3[view] [source] [discussion] 2024-06-21 15:00:09
>>pred_+4T2
I could not get it to work when I looked into it last, for Gimp I actually installed it globally, I think neither Chrome or Firefox uses the system Harfbuzz. Going by the dependants of Harfbuzz on Arch [0] it might be possible that it works in Chromium with a custom Harfbuzz, but it is not something I have tried. And since it is still experimental it is not built by default in any distribution I know of.

[0]: https://archlinux.org/packages/extra/x86_64/harfbuzz/

replies(1): >>pred_+ny3
◧◩◪
14. pred_+ny3[view] [source] [discussion] 2024-06-21 17:05:18
>>erk__+df3
Gotcha, thanks champ!
◧◩◪
15. wayvey+Ji5[view] [source] [discussion] 2024-06-22 11:36:43
>>redbel+s5
Or recursion :)
16. fugled+Ky7[view] [source] 2024-06-23 12:25:45
>>erk__+(OP)
This is fantastic! These days, we have learned that no product can be taken seriously if it doesn't use LLMs somehow, so also based on Harfbuzz-Wasm, here's a font which is also an LLM: >>40766791
[go to top]