News for hackers. Stuff that matters.
Re:3270font: A Font for the Nostalgic by enriquto on Thursday October 01, 2020 @03:53AM (#24648486)
It's a bit sad to see such a beautiful bitmaps blurred to death by clueless "antialiasing". Doesn't anybody appreciate clean bitmap fonts anymore? I feel like an old man yelling at passerby.
Re:3270font: A Font for the Nostalgic by indymike on Thursday October 01, 2020 @07:38AM (#24649754)
On low pixel density screens, pixel perfect bitmap fonts are great. On high pixel density screens, it works the opposite way: antialiasing looks fine, and scaled up bitmaps look bad.
Re:3270font: A Font for the Nostalgic by tenebrisalietum on Thursday October 01, 2020 @05:10AM (#24648954)
You can't properly appreciate them unless viewed on a CRT with it's softened edges, visible scan lines, bloom, and glow.
Re:3270font: A Font for the Nostalgic by arexxbifs on Thursday October 01, 2020 @05:14AM (#24648977)
Font smoothing in general is pretty bad but in Linux it's abysmal.

I use bitmap fonts as much as possible and I turn AA off for all fonts below a certain size (18 px IIRC). I also force Firefox to exclusively use Arial because of the excellent hinting.

Things are so much more legible and crisp it's not even funny.

(Edit: Funny thing is, I remember font smoothing as much better in general maybe 10-15 years ago. Perhaps it was just the novelty that appealed to me then.)

Re:3270font: A Font for the Nostalgic by KozmoNau7 on Thursday October 01, 2020 @07:25AM (#24649661)
I've found the font rendering to be very good indeed ever since the Truetype2 patent expired, so the proper byte-code interpreter could be enabled in Freetype and the autohinter disabled.

I find the rendering on Linux (KDE Neon and openSUSE for me) to be vastly superior to Windows 10. It was already very good on my old 27" ~108ppi display, but it's even better now that I have a 4K display that's ~163ppi, which I run at 150% scale. Crisp shapes, no blurring at all.

It's all at default settings, subpixel rendering on and slight hinting.

Re:3270font: A Font for the Nostalgic by gombosg on Thursday October 01, 2020 @07:51AM (#24649851)
> the proper byte-code interpreter could be enabled in Freetype and the autohinter disabled

Can you point me to some docs about how this can be done?

Re:3270font: A Font for the Nostalgic by KozmoNau7 on Thursday October 01, 2020 @07:57AM (#24649885)
The patents expired in 2010, and it should be enabled by default starting from Freetype 2.4. Microsofts patents on ClearType color filtering expired in 2019, but I don't know if that has led to any further improvements in Freetype.

https://freetype.org/patents.html

Make sure you don't have this in your fontconfig:

  <match target="font">
    <edit name="autohint" mode="assign">
      <bool>true</bool>
    </edit>
  </match>
As the autohinter is garbage.
Re:3270font: A Font for the Nostalgic by arexxbifs on Thursday October 01, 2020 @11:50AM (#24652309)
I'm running 1080p on a 23" screen (96 ppi) and I find Windows font rendering to be much better compared to Linux/Freetype on the same screen. Freetype suffers from intense blurring, colour bleed in subpixel smoothing and variable thicknesses both within glyphs and between two supposedly identical glyphs rendered next to each other.
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.

Re:3270font: A Font for the Nostalgic by TacticalCoder on Thursday October 01, 2020 @10:00AM (#24650854)
I fully agree. It's really sad. I don't have a high DPI screen (just a 38" doing 3840x1600, but using a "regular" pixel-size, not a retina display) and I'm using a "pixel perfect" font for coding, no AA (a modified version Terminus I made myself, with inspiration from the Monaco font for some glyphs).

You're not alone but we are a dying breed.

Re:3270font: A Font for the Nostalgic by bbbobbb on Thursday October 01, 2020 @12:04PM (#24652511)
Is your modified version public? I terminus font but somehow it seems very thin and hard to read at slightly larger sizes..