Improve Font Rendering on Debian 8 By Installing Infinality and Ubuntu Fonts

The default font rendering on Debian 8 is not so nice. This tutorial will show you how to improve font rendering on Debian 8 by installing infinality which is a font configuration tool and also we will install ubuntu fonts on Debian 8.

Installing Infinality to Improve Font Rendering on Debian 8

The official Infinality website no longer allows public access. And as far as I know, there’s no official package made for Debian. However a launchpad user slow maintained a PPA for Infinality .  We can install Infinality on Debian using this PPA.

Note: Ubuntu PPA might break your Debian system. Use it at your own risk.

First open your terminal and login as root user.


Then, edit the sources.list file.

nano /etc/apt/sources.list

Copy the following two lines and paste them at the end of the file.

deb trusty main
deb-src trusty main

Import the public PGP key of this PPA to verify package integrity during the installation process.

apt-key adv --keyserver --recv-keys E985B27B

Update local package index and install infinality.

apt-get update
apt-get install fontconfig-infinality

Configure Font Rendering

Run the following command to configure the font style you want to use.

sudo bash /etc/fonts/infinality/ setstyle

As you can see, you can set your font style to emulate infinality, linux, osx and windows.  For this tutorial, we will choose the 3rd option: linux. But you can try other styles to find the best for you.

font rendering on Debian 8

Another thing you can do is to choose a more specific style for Debian 8. Run the following command

gedit /etc/profile.d/

Find the below text.


You can change DEFAULT to UBUNTU so this looks like this.


As you can see in the file, you have many options to choose from.

install infinality on Debian 8

After you choose a rendering style, save and close the file. Then re-login or reboot your system to see the changes.

Web Page Before

Font Rendering on Debian 8

Web Page After

Font Rendering on Debian 8

Terminal Before

Font Rendering on Debian 8

Terminal After

Font Rendering on Debian 8

Install Ubuntu Fonts on Debian

The ubuntu font is the default font used on Ubuntu. I just love it. Debian users can download the deb package from


Once downloaded, use dpkg to install it on Debian.

dpkg -i ttf-ubuntu-font-family*.deb

To set ubuntu font as the window title and interface font, open Gnome tweak tool and select fonts tab on the left. If your Debian do not have Gnome tweak tool, then install it with command: apt-get install gnome-tweak-tool.

debian gnome tweak tool

Now my Debian 8 Gnome desktop looks much better with these improvement. I found that Ubuntu Mono 13 font is very pleasing to the eye in the terminal. To set Ubuntu Mono as the font for terminal, select Ubuntu Mono Regular in Monospace field of Gnome tweak tool and set 13 as the font size.

ubuntu mono regular 13 in the terminal

Rate this tutorial
[Total: 9 Average: 5]
  • Gandon

    Thank you!

  • Cereal Killer

    Great, many thanks!

  • Zorzi

    Very great tutorial. Thanks.

  • Komang Kamartina

    Thank you for the tutorial. Now my debian look better than before.