Live data from Hacker News

ASCII Play

play.ertdfgcvb.xyz

11–20 of 21 posts

Re: ASCII Play

#11

what is the monospace font used for the code shown there?

after a little digging it looks like a custom font called 'Simple Console', though it's not available anywhere I can find other than through the website (which states it's licensed only for use on their website, not for download or use on other sites)

Re: ASCII Play

#12
Annoyingly, the canvas is hard-coded to use only the "Simple Console" font; if your browser doesn't load the font for whatever reason, it shows up in a proportional typeface which ruins the effect.

Changing `font-family: "Simple Console"` to `font-family: "Simple Console", monospace` would fix it.

Re: ASCII Play

#14
post #2

It's cool but the "r" in that font is distracting.

The “r”, which looks a bit like a hook, is what makes this font special. The reason it was chosen is that the name of the website contains an “r”…

Re: ASCII Play

#15

Annoyingly, the canvas is hard-coded to use only the "Simple Console" font; if your browser doesn't load the font for whatever reason, it shows up in a proportional typeface which ruins the effect. Changing `font-family: "Simple Console"` to `font-family: "Simple Console", monospace` would fix it.

Thank you, will fix!

Note: some CSS attributes for the pre (or canvas) can be set trough an exported “settings” object:

  export const settings = { fontFamily : 'Monaco' }

Re: ASCII Play

#16
post #13

what is the monospace font used for the code shown there?

It is a custom version of “Simple” by Norm made to include some of the box drawing glyphs. https://lineto.com/typefaces/simple

Two examples with the box drawing glyphs:

https://play.ertdfgcvb.xyz/#/1612272092088

https://play.ertdfgcvb.xyz/#/1625307783449

Re: ASCII Play

#18
post #5

Another commercial website that heavily uses ASCII animation: https://oxide.computer/

That’s a very slick page!

By inspecting the animated diagrams they switch from text rendering in a PRE element to a CANVAS renderer when the page width shrinks below a certain size.

Post reply on HN