Hacker News new | ask | show | jobs
by dmd 1202 days ago
A lot more information here, including how the phosphor decay is part of the font and you won't get the right appearance if you don't take it into account: https://www.masswerk.at/nowgobang/2019/dec-crt-typography
2 comments

With CSS (text-shadow to be exact) you can get pretty close, here is my shot at it: https://codepen.io/ivanca/pen/oNPZMLx
Here's the "workbench implementation" mentioned in the blog post (too much blur/bleed), using a character generator of its own:

https://www.masswerk.at/rterm/VT/

And a rather fancy version of the same thing: https://www.masswerk.at/rterm/VT/fancy.html

I do wonder if a sufficiently clever person could coerce OpenType's Variable Font extension to simulate phosphor behaviour.
There was a time when blurred fonts were some of a (small) hype. The tricky part is that phosphor response isn't linear, but sinusoidal, and that you had to scale this with font size… (You could make this an axis with variable fonts, though.)
Since the VF extension requires a state machine that can modify the font, it might be able to accomplish that, but my very quick read of the spec didn't let me grasp whether the SM executes once, or whether you can run it repeatedly.

(I am not a sufficiently clever person, obviously, and you probably wouldn't want to burn cycles on simulating that anyway. Nevertheless.)