zlacker

Tetris Font (2020)

submitted by Bluest+(OP) on 2024-06-20 11:11:16 | 723 points 92 comments
[view article] [source] [go to bottom]

NOTE: showing posts with links only show all posts
8. Tactic+L7[view] [source] 2024-06-20 12:11:31
>>Bluest+(OP)
For those who don't know the author:

https://en.wikipedia.org/wiki/Erik_Demaine

9. muth02+68[view] [source] 2024-06-20 12:13:23
>>Bluest+(OP)
I worked on a similar project here:

https://github.com/robertmuth/TetrisScroller

It has a pretty much complete ascii font but I am cheating in that I allow one non tetris piece with only 3 pixels arranged as an angle. There is also a simple tool that tries to find a covering of a given font.

10. csmeye+H8[view] [source] 2024-06-20 12:16:18
>>Bluest+(OP)
This is cool, and some of Demaine’s other work is amazing too.

https://erikdemaine.org/papers/Origamizer_SoCG2017/paper.pdf

^ provides an algorithm for generating any 3D solid via folding a 2D net (origami style)

12. erk__+h9[view] [source] 2024-06-20 12:21:11
>>Bluest+(OP)
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

◧◩
13. cs702+xa[view] [source] [discussion] 2024-06-20 12:28:59
>>erk__+h9
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

26. PetitP+9q[view] [source] 2024-06-20 14:03:44
>>Bluest+(OP)
Related: One of the subniche in the Tetris communities is Tetris art / pattern creation, i.e. drawing predefined patterns while playing the game (almost) normally.

One of most practiced pattern is the chevron, where you draw a > shape with holes, but otherwise fill the whose board. This stemmed from the Japanese arcade version of Tetris by Sega (or Segatet for those in the known). This version was hugely popular in the arcade (it stayed for an incredibly 10 years in the top100 earner in some arcade magazine), and some player were destroying the game so much that they invented this challenge. This was recognized in Segatet successor Tetris the Grand Master (TGM3), and formally named "Secret Grade". One example here: https://www.youtube.com/watch?v=ZgzcAkjp0J8 , and another there with TGM3 signature speed https://www.youtube.com/watch?v=32wzKc0cHQU .

But in general, Shuey is the master of arbitrary making pattern. Look at him drawing a Luigi: https://www.youtube.com/watch?v=_tipJDjeKuY .

Note that since then, an algorithm for arbitrary pattern generation has been devised by Michael Birken: https://www.youtube.com/watch?v=PJkHwulsac4

(sort of related: the playing forever algorithm may be interpreted as a pattern creation https://tetris.wiki/Playing_forever )

◧◩
27. refset+dr[view] [source] [discussion] 2024-06-20 14:09:51
>>csmeye+H8
The Advanced Data Structures course lectures are great, including his very own research on "Retroactive Data Structures" https://courses.csail.mit.edu/6.851/spring21/lectures/L01.ht...
29. nofina+sw[view] [source] 2024-06-20 14:43:46
>>Bluest+(OP)
Very neat! I love how you can do an entire paragraph.

For example https://erikdemaine.org/fonts/tetris/?text=%7D6G6C+8%40%3F%3...

38. acidx+uz[view] [source] 2024-06-20 15:00:53
>>Bluest+(OP)
Reminds me of this sample from the Lwan project: https://time.lwan.ws/blocks -- where the clock is rendered on the server, and new frames are sent to the client using chunked encoding.
42. omoika+rH[view] [source] 2024-06-20 15:42:14
>>Bluest+(OP)
Reminds me of this paint-by-tetris tool: https://www.ioccc.org/years.html#2013_birken
44. _joel+dI[view] [source] 2024-06-20 15:45:58
>>Bluest+(OP)
Nice https://erikdemaine.org/fonts/tetris/?text=u%26rz+~uu&rot=1&...
45. jacobg+7L[view] [source] 2024-06-20 16:01:09
>>Bluest+(OP)
My Amiga could do that too! https://www.youtube.com/watch?v=-r9LlyJ9YN4
◧◩
49. edemai+2U[view] [source] [discussion] 2024-06-20 16:54:09
>>makach+F5
Thanks for the feature suggestion! I've gone ahead and implemented random valid stacking order. So if you reload the page, and enter text that repeats the same letter more than once, you will hopefully get different build orders (depending on random choices). For example: https://erikdemaine.org/fonts/tetris/?text=aaaaa&rotate=0&sp...
◧◩
51. edemai+BU[view] [source] [discussion] 2024-06-20 16:57:19
>>coryth+fy
I couldn't reproduce this bug. Perhaps the program you're using to display the GIF doesn't support the GIF frame delay feature? (E.g., Chrome seems to display them fine.) Feel free to open an issue on the repo if I'm missing something: https://github.com/edemaine/font-tetris
◧◩
55. Bluest+WW[view] [source] [discussion] 2024-06-20 17:12:06
>>jacobg+7L
TETRIS: THE MUSICAL (!)

- https://www.youtube.com/watch?v=TwcS46tkixI

◧◩
57. nialv7+y11[view] [source] [discussion] 2024-06-20 17:41:55
>>erk__+h9
You can even play Pokemon using fonts: https://www.coderelay.io/fontemon.html
◧◩
62. breck+861[view] [source] [discussion] 2024-06-20 18:12:17
>>Tactic+L7
Oh wow, quite a portfolio: https://github.com/edemaine

He is also the maintainer of KaTeX, which I depend on.

(Thanks Erik!)

◧◩◪
63. elihu+X71[view] [source] [discussion] 2024-06-20 18:24:51
>>Bluest+WW
Huh, I was expecting that other Tetris musical: https://www.youtube.com/watch?v=hWTFG3J1CP8
◧◩
65. moritz+fd1[view] [source] [discussion] 2024-06-20 18:54:32
>>Tactic+L7
I know him from proving NP-hardness of the game Sokoban:

https://erikdemaine.org/papers/PushingBlocks_CGTA/

And I clicked this submission because of his name, after all the time.

I didn't fully go through or understand the proof, but it was a refreshing addition to the classic problems I had to understand for college at the time.

Didn't need it, just fed my curiosity.

And when I clicked this link, my curiosity was fed again.

Seems like it's worth having heard of him, even as a non-scientist, because his subjects are just so interesting. Reminds me of Scott Aaronson in that regard.

66. ambyra+Ed1[view] [source] 2024-06-20 18:56:49
>>Bluest+(OP)
Multiplayer Tetris that spins!! https://youtu.be/PGFgcaVmL_I?si=egqUDmOc8D2cUAUM
◧◩◪
68. areyou+2i1[view] [source] [discussion] 2024-06-20 19:20:47
>>moritz+fd1
That paper does not prove that Sokoban is NP-hard. It does, however, cite an earlier paper proving the stronger result that Sokoban is PSPACE-complete:

Culberson, Joseph. "Sokoban is PSPACE-complete." (1997). https://era.library.ualberta.ca/items/f551dfd8-c8e6-4e78-883...

See also https://erikdemaine.org/papers/NCL_TCS/

◧◩◪
80. hteza+p92[view] [source] [discussion] 2024-06-21 02:26:02
>>Rugnir+Iw
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

81. saltyo+gp2[view] [source] 2024-06-21 05:45:01
>>Bluest+(OP)
Great doco about origami that Erik appears in. 'Between The Folds' https://www.youtube.com/watch?v=DiIr7du6Y3w
◧◩◪
82. erk__+Yt2[view] [source] [discussion] 2024-06-21 06:42:28
>>Rugnir+Iw
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

◧◩◪
85. erk__+uo3[view] [source] [discussion] 2024-06-21 15:00:09
>>pred_+l23
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/

◧◩
92. fugled+1I7[view] [source] [discussion] 2024-06-23 12:25:45
>>erk__+h9
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]