News for hackers. Stuff that matters.
Re:3270font: A Font for the Nostalgic by rbanffy on Thursday October 01, 2020 @05:28AM (#24649035)
Unless the bitmap font lines up with the pixels on the screen, the results are always terrible. They work well on CRTs because CRTs artifact away the pixels and blend them into round-edged horizontal lines. For high-dpi screens it's hopeless, as the pixels are invisible to the naked eye from a reasonable working distance.
Re:3270font: A Font for the Nostalgic by enriquto on Thursday October 01, 2020 @05:39AM (#24649092)
> Unless the bitmap font lines up with the pixels on the screen (...)

That's the basic tenet of bitmap fonts. You are not supposed to place them at sub-pixel positions, or to rescale them.

The visual effect of bad antialiasing is horrific, no matter the resolution of the screen. Even if your pixels are tiny, you readily notice if all the pixels are black and white only, or instead there are a few ugly "gray" pixels in between.

Re:3270font: A Font for the Nostalgic by quietbritishjim on Thursday October 01, 2020 @06:09AM (#24649257)
It's not the basic tenant of bitmap fonts from the 90's or earlier. CRT pixels (if you can call them that) would simply never line up perfectly (certainly not horizontally but also not vertically if I remember right). Screen fonts were specifically designed to look good after a bit of blurring, so to reproduce their originally intended display on modern screen it makes sense to artificially blur them a bit.
Re:3270font: A Font for the Nostalgic by rbanffy on Thursday October 01, 2020 @07:48PM (#24657392)
CRT pixels always line up perfectly because they are drawn with the electron gun, not etched into the screen like EL, plasma, or LCDs. OTOH, they are never square. They are always rounded at the ends and usually overlap due to focus and timing.
Re:3270font: A Font for the Nostalgic by morsch on Friday October 02, 2020 @03:36AM (#24660051)
The electron gun draws through the shadow mask, which is fixed and independent of resolution. It's a debate long enjoyed by nitpickers.

https://en.m.wikipedia.org/wiki/Shadow_mask

https://youtu.be/Ea6tw-gulnQ

Re:3270font: A Font for the Nostalgic by amelius on Thursday October 01, 2020 @05:33AM (#24649061)
Ok, how do we fix it?
Re:3270font: A Font for the Nostalgic by rbanffy on Thursday October 01, 2020 @05:40AM (#24649099)
You can apply a filter on top of a raw bitmap the same way programs like Cathode or Cool Retro Term do. This way you have CRT-like pseudopixels being rendered at the high resolution of native panel.

I used Cool Retro Term on Linux as my terminal in full screen when debugging stuff because the task was so boring that using an interesting terminal made it bearable.

Re:3270font: A Font for the Nostalgic by enriquto on Thursday October 01, 2020 @05:39AM (#24649095)
Just use bitmap fonts as they are intended to be used, without antialiasing. They are beautiful.
Re:3270font: A Font for the Nostalgic by rbanffy on Thursday October 01, 2020 @05:41AM (#24649106)
I need a microscope to see a 5x7 font on my MBP screen.
Re:3270font: A Font for the Nostalgic by enriquto on Thursday October 01, 2020 @06:44AM (#24649428)
Then use a larger font, duh
Re:3270font: A Font for the Nostalgic by rbanffy on Thursday October 01, 2020 @09:15AM (#24650455)
In order to be visible on the MBP screen, it'll require a humongous bitmap.

And the pixels will still be invisible to the naked eye. It'll make no difference.

Pixel-perfect fonts are great when you have 8-16 scanlines to define a character. It hasn't been like that for decades.