Crispy fonts in Chromium, Atom, Skype under Arch Linux

After freetype2 updated from 2.6 to 2.7.1 fonts in Chromium, Atom, Skype become blurred. Just check following image.

freetype2_2_7_1_chromium.png

You can read my topic at bbs.archlinux.org.

I've solded this issue in following steps. First, install packages.

yaourt -S fontconfig-ubuntu freetype2-v35

Second, update ~/.config/fontconfig/fonts.conf.

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <match target="font" >
        <edit mode="assign" name="lcdfilter" >
            <const>lcdlegacy</const>
        </edit>

        <edit mode="assign" name="hinting" >
            <bool>true</bool>
        </edit>

        <edit mode="assign" name="hintstyle" >
            <const>hintfull</const>
        </edit>

        <edit mode="assign" name="rgba" >
            <const>rgb</const>
        </edit>

        <edit name="embeddedbitmap" mode="assign">
            <bool>false</bool>
        </edit>

        <edit name="antialias" mode="assign">
            <bool>true</bool>
        </edit>
    </match>

    <match target="font">    
            <test name="fullname" compare="eq">
                <string>Terminus (TTF)</string>
            </test>
            <edit name="antialias" mode="assign">
                <bool>false</bool>
            </edit>
    </match>
</fontconfig>

Third, update ~/.Xresources.

Xft.autohint: 0
Xft.dpi: 96
Xft.antialias: 0
Xft.rgba: rgb
Xft.hinting: 1
Xft.hintstyle: hintfull
Xft.lcdfilter: lcddefault

File /etc/profile.d/freetype2.sh leave without changes.

comments powered by Disqus