Wiki Table of Contents

Font adjustment

NOTE: This guide is mostly based upon an entry in the Manjaro Wiki.

If you are still unhappy with your fonts after taking the steps in the Users Manual (Section 3.3.3), a little configuration may be required to render the fonts in an optimal manner. Note that the effect will be limited to standard Xfce elements, that the following may be overridden by other user font settings (including in Settings Manager), and the result will depend upon resolution, magnification and personal factors such as preference or perception.

  1. Open Thunar as root, navigate to /etc/fonts/ and create the document local.conf. (CLI: sudo nano /etc/fonts/local.conf).
  2. Paste the following content in the file and save:
<match target="font">
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit mode="assign" name="hintstyle">
<const>hintslight</const>
</edit>
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>

3. Do one of the following:

  • If the file .Xresources exists in your Home folder, back it up by copying it and saving it as .Xresources.bak
  • If it does not already exist, then create it by opening Thunar to your Home folder and clicking File > Create Document > Empty FIle (CLI: nano ~/.Xresources)

4. Open the file, deleting any content that might be there, and pasting in this text:

Xft.dpi: 96
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Xft.autohint: false
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault

Save changes in the file.

5. Run the following command in terminal:
xrdb -merge ~/.Xresources

6. Click Settings Manager > Appearance, Fonts tab. Make sure that Anti aliasing is On, and adjust Hinting to Slight or whatever you prefer.

7. Reboot to apply the settings.

Links

Arch Wiki on font configuration
Debian Wiki on fonts

v. 20160329

Leave a Comment

Do NOT follow this link or you will be banned from the site!