You are not logged in.

#1 2017-01-18 16:05:04

rubick
Member
From: Czech Republic
Registered: 2013-02-11
Posts: 20

Ugly fonts after freetype2 update

Hello,
I have configured custom font rendering in the file ~/.config/fontconfig/fonts.conf:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match target="font">
    <edit name="antialias" mode="assign"><bool>true</bool></edit>
    <edit name="hinting" mode="assign"><bool>true</bool></edit>
    <edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
    <edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
    <edit name="rgba" mode="assign"><const>rgb</const></edit>
  </match>
</fontconfig>

This was working nice until upgrade of freetype2 to version 2.7 and above. After upgrade, the fonts look less crisp. The config file is read, because if I switch off antialiasing, the fonts are clearly not antialiased. But the appearance of the fonts is different:

Freetype2 2.6.5-2
goob.png

Freetype2 2.7.1-1
bad.png

What is causing this? Any advice? Thanks.

Offline

#2 2017-01-18 17:10:40

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,794
Website

Re: Ugly fonts after freetype2 update

maymbe change hintstyle to hintslight?


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#3 2017-01-18 17:21:41

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: Ugly fonts after freetype2 update

Font_configuration#Subpixel_rendering The default subpixel hinting mode changed from with 2.7,  perhaps that is related.

Offline

#4 2017-01-18 18:37:13

rubick
Member
From: Czech Republic
Registered: 2013-02-11
Posts: 20

Re: Ugly fonts after freetype2 update

Thanks for the hints, but that did not help.

I however noticed something strange. Some applications render fonts OK, but some don't. For example Inkscape, Evince and VLC render fonts nicely, but Chromium and dmenu don't.

Offline

#5 2017-01-18 18:38:19

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,794
Website

Re: Ugly fonts after freetype2 update

Chrome/Chromium is known to misbehave, ask brebs

you may try setting up ~/.Xresources and ~/.xsettingsd as advised in the wiki

Last edited by ugjka (2017-01-18 18:45:31)


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#6 2017-01-18 18:51:37

digitalone
Member
Registered: 2011-08-19
Posts: 328

Re: Ugly fonts after freetype2 update

Try that.

Offline

Board footer

Powered by FluxBB