Hi All,
I'm posting here after already raising the issue on the FreeType mailing list.
The problem:
- LiberationMono-Regular.ttf rendered perfectly in Ubuntu 8, Ubuntu 10 and Ubuntu 16, but terrible in Ubuntu 20.
- It is reproducible on recent versions of OpenSUSE and ArchLinux.
- It only applies in specific programs eg. xterm, xfontsel, likely others.
To reproduce:
1. Make sure /usr/fonts/truetype/liberation/ is a font dir (mkfontscale;mkfontdir).
2. xset +fp /usr/fonts/truetype/liberation/
3. xterm -fn "-misc-liberation mono-medium-r-normal-*-*-*-*-*-*-*-*"
4. Observe terrible font (see screenshot comparison Ubuntu 16 vs latest OpenSUSE)
Werner from the FreeType team had this to say:
"
It's definitely a bug in the X font setup: The font is treated as
either unhinted or autohinted and then rendered as a mono font.
FreeType doesn't support this. Monochrome rendering (to be more
precise: bi-level rendering) of TrueType fonts in FreeType gives only
pleasant results for low resolutions if (a) the font contains proper
hints for B/W rendering, and (b) the v35 bytecode engine mode is used.
either unhinted or autohinted and then rendered as a mono font.
FreeType doesn't support this. Monochrome rendering (to be more
precise: bi-level rendering) of TrueType fonts in FreeType gives only
pleasant results for low resolutions if (a) the font contains proper
hints for B/W rendering, and (b) the v35 bytecode engine mode is used.
"
Cheers,
Ben
Attachment:
LiberationMono-Regular.zip
Description: Zip compressed data