Ubuntu: Freetype with the Infinality patches can be installed in Ubuntu by using a PPA. To add the PPA and install the required packages in Ubuntu 12.04, 13.10 or 14.04, use the following commands:
sudo add-apt-repository ppa:no1wantdthisname/ppa sudo apt-get update sudo apt-get upgrade sudo apt-get install fontconfig-infinality
Once installed, log out and log back in.
Debian: the PPA works on Debian 7 too (that's actually how I've installed Infinality in the screenshot above - I've used "raring" for the version), but because I've only tested it for a few minutes, I can't say how stable it is. If you want to use it in Debian, follow the instructions below on your own risk. An alternative way of installing Infinality on Debian can be found HERE.
To add an unofficial Infinality PPA and install all the required packages in Debian (32bit and 64bit), use the following commands:
echo "deb http://ppa.launchpad.net/no1wantdthisname/ppa/ubuntu trusty main" | sudo tee /etc/apt/sources.list.d/infinality.list echo "deb-src http://ppa.launchpad.net/no1wantdthisname/ppa/ubuntu trusty main" | sudo tee -a /etc/apt/sources.list.d/infinality.list sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E985B27B
For another way of getting better fonts in Debian, see THIS article (it's in Spanish but you only need the commands).
Installing Infinality in other Linux distributions:
Once you install Infinality, it's time to configure it. To set the style you want to use, run the following command:
sudo bash /etc/fonts/infinality/infctl.sh setstyle
And select the style you want to use. Available options are: debug, infinality, linux, osx, osx2, win7, win98 and winxp (I recommend using the "linux" style, obviously, but you can try any style, then remember to log out and log back in - you can easily select a different style later on by using the same command). To use the Windows or OSX style you'll also need to use the Windows or OSX fonts.
Optional: next, open /etc/profile.d/infinality-settings.sh with a text editor as root - I'll use Gedit below:
sudo -H gedit /etc/profile.d/infinality-settings.sh
And in this file, search for USE_STYLE (it should be USE_STYLE="DEFAULT" by default) and change it to one of the following styles (I recommend using "UBUNTU" here but you should also try the default to see which one you like better):
In this file you can change many other settings but if you don't know what they do, only change the style. Then, save the file, log out and log back in to see the changes.
For discussion, bug reports and so, visit the Infinality forums.
Update: for improved font rendering in Java / Swing applications (OpenJDK 7), see this article: Install OpenJDK Patched With Font Fixes [Ubuntu PPA]
For Ubuntu, to remove Infinality and revert all the changes made by using the instructions above, use the following commands:
sudo apt-get purge fontconfig-infinality sudo apt-get install ppa-purge sudo ppa-purge ppa:no1wantdthisname/ppa
Once the PPA is purge, log out and log back in.
For Debian, if you've added the PPA and want to revert the changes, use the following commands:
sudo apt-get purge fontconfig-infinality sudo rm /etc/apt/sources.list.d/infinality.list sudo apt-get update
Then (still for Debian), downgrade the Freetype package using the following command, presuming you're using Debian stable:
- 32bit:
sudo apt-get install libfreetype6/stable
- 64bit:
sudo apt-get install libfreetype6/stable libfreetype6:i386/stable
Note: you also need to downgrade libfreetype6-dev if it's installed and also, libfreetype6:i386 may not be installed. You may want to check if those packages are installed by using "apt-cache policy" (example: "apt-cache policy libfreetype6-dev").