zlacker

Font as Tetris [video]

submitted by cs702+(OP) on 2024-06-20 12:30:11 | 67 points 4 comments
[view article] [source] [links] [go to bottom]
replies(3): >>erk__+K >>HanCli+ym >>dang+jh1
1. erk__+K[view] [source] 2024-06-20 12:34:02
>>cs702+(OP)
Author here if there is any questions.

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

2. HanCli+ym[view] [source] 2024-06-20 14:48:59
>>cs702+(OP)
This is seriously impressive!!

It reminds me of the way that speedruns and game replays are saved as deterministic timings of inputs -- almost like DOOM demofiles, except much more reasonable to track.

I like your idea of a Gameboy Emulator! Game of Life also feels like it would be possible in this structure, but I think Tetris is absolutely perfect. Top notch!!

What's the easiest way to play with this ourselves? Would be great if this font could be loaded on a webpage for us to play with interactively, but not sure how difficult that would be.

replies(1): >>erk__+1s
◧◩
3. erk__+1s[view] [source] [discussion] 2024-06-20 15:17:42
>>HanCli+ym
Game of life is certainly possible someone saw my Bad Apple font and not only reproduced it, but also made a Maze [0]

So the biggest issue is that you need something that uses harfbuzz where you can recompile and add a flag. If you look in this repo there is something precompiled for Mac [1] which was the software I used as well. You can also build harfbuzz as described here [2] and load it into some program. I used to just install it globally on arch and then use Gimp for the Bad apple example.

And lastly the same person who made the maze also made a way to use LD_PRELOAD to load a custom harfbuzz into arbitary software so you can follow that guide as well: [3]

[0]: https://github.com/hsfzxjy/Harfbuzz-WASM-Fantasy

[1]: https://github.com/harfbuzz/harfbuzz-wasm-examples

[2]: https://github.com/harfbuzz/harfbuzz/blob/main/docs/wasm-sha...

[3]: https://github.com/hsfzxjy/Bad-Apple-Font

4. dang+jh1[view] [source] 2024-06-20 20:16:45
>>cs702+(OP)
Related ongoing thread:

Tetris Font - >>40737294

[go to top]