Solved [SOLVED] Fonts got ugly in Mate

Kicking tires on FreeBSD 10, so far liking it. Installed Mate desktop and everything looked good. Then I installed a few more fonts from ports - and something happened that seems turned anti-aliasing off. Is there an easy way to restore how fonts look by default in Mate?

What's interesting is that fonts in Thunderbird and Firefox are nice, but in Mate itself and Chrome are not smooth.
 
Re: Fonts got ugly in Mate

Create a file named ~/.config/fontconfig/fonts.conf and put the following code in it:

Code:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <dir>~/.fonts</dir>
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>rgb</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hintstyle">
   <const>hintslight</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
 </match>

This might resolve your problem.
 
Re: Fonts got ugly in Mate

Solved by deinstalling the previously installed ports:
Code:
print/cm-super
x11-fonts/anonymous-pro
x11-fonts/artwiz-aleczapka
x11-fonts/cantarell-fonts
x11-fonts/charis
x11-fonts/doulos
x11-fonts/droid-fonts-ttf
x11-fonts/ecofont
x11-fonts/fonts-te
x11-fonts/geminifonts
x11-fonts/hanazono-fonts-ttf
x11-fonts/inconsolata-ttf
x11-fonts/isabella
x11-fonts/junicode
x11-fonts/khmeros
x11-fonts/paratype
x11-fonts/padauk
x11-fonts/stix-fonts
x11-fonts/suxus
x11-fonts/terminus-font
x11-fonts/ubuntu-font
x11-fonts/wqy
x11-fonts/urwfonts-ttf
x11-fonts/webfonts
Suddently anti-aliasing in Mate returned back.
 
Re: Fonts got ugly in Mate

tankist02 said:
Thanks, but didn't help. BTW I don't have ~/.fonts directory.

Actually the directory is ~/.config/fontconfig, not ~/.fonts. Create a file fonts.conf inside that directory. Copy and paste the above code in fonts.conf. Can you try again? This should have worked.

If this really doesn't work, create or edit ~/.Xresources and paste the following in it:

Code:
! Xft settings ---------------------------------------------------------------

Xft.dpi:        96
Xft.antialias:  true
Xft.rgba:       rgb
Xft.hinting:    true
Xft.hintstyle:  hintslight
!Xft.lcdfilter:  lcddefault
 
Re: Fonts got ugly in Mate

tankist02 said:
Solved by deinstalling the previously installed ports:
Code:
print/cm-super
x11-fonts/anonymous-pro
x11-fonts/artwiz-aleczapka
x11-fonts/cantarell-fonts
x11-fonts/charis
x11-fonts/doulos
x11-fonts/droid-fonts-ttf
x11-fonts/ecofont
x11-fonts/fonts-te
x11-fonts/geminifonts
x11-fonts/hanazono-fonts-ttf
x11-fonts/inconsolata-ttf
x11-fonts/isabella
x11-fonts/junicode
x11-fonts/khmeros
x11-fonts/paratype
x11-fonts/padauk
x11-fonts/stix-fonts
x11-fonts/suxus
x11-fonts/terminus-font
x11-fonts/ubuntu-font
x11-fonts/wqy
x11-fonts/urwfonts-ttf
x11-fonts/webfonts

Suddently anti-aliasing in Mate returned back.

We've posted at the same time. Glad to see you solved.
 
fulano said:
Create a file named ~/.config/fontconfig/fonts.conf and put the following code in it:

Code:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <dir>~/.fonts</dir>
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>rgb</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hintstyle">
   <const>hintslight</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
 </match>

This might resolve your problem.
This method works for fonts (RGB) in Xfce?
 
I have the following configuration to have better fonts rendering in XFCE:

Code:
andrew@donald:fbsd-11$ cat ~/.config/fontconfig/fonts.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
    <!-- reject all bitmap fonts, with the exception of 'terminus' -->
    <selectfont>
        <acceptfont>
            <pattern>
                <patelt name="family"> <string>Terminus</string> </patelt>
            </pattern>
        </acceptfont>
        <rejectfont>
            <pattern>
                <patelt name="scalable"> <bool>false</bool> </patelt>
            </pattern>
        </rejectfont>
    </selectfont>

    <!-- preferred aliases -->
    <alias> <family>serif</family>
        <prefer>
            <family>DejaVu Serif</family>
        </prefer>
    </alias>

    <!-- preferred aliases -->
    <alias> <family>sans-serif</family>
        <prefer>
            <family>DejaVu Sans</family>
        </prefer>
    </alias>

    <!-- preferred aliases -->
    <alias> <family>monospace</family>
        <prefer>
            <family>DejaVu Sans Mono</family>
            <family>Terminus</family>
        </prefer>
    </alias>

    <!-- default quality settings -->
    <match target="font">
        <edit mode="assign" name="rgba">      <const>rgb</const>     </edit>
        <edit mode="assign" name="antialias"> <bool>true</bool>       </edit>
        <edit mode="assign" name="autohint">  <bool>false</bool>       </edit>
        <edit mode="assign" name="hinting">   <bool>true</bool>       </edit>
        <edit mode="assign" name="hintstyle"> <const>hintfull</const> </edit>
        <edit mode="assign" name="lcdfilter"> <const>lcdlight</const> </edit>
    </match>

</fontconfig>

Nice tips to beautify XFCE are here https://cd-rw.org/t/de-uglyfying-majaro-linux-xfce/352
 
Back
Top