From ArchWiki
Revision as of 20:16, 30 October 2013 by Bohoomil (talk | contribs) (initial release)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Template:Article summary start Template:Article summary text

Template:Article summary heading Template:Article summary wiki: Information on adding fonts and font recommendations Template:Article summary wiki: An overview of font configuration options and various techniques for improving the readability of fonts Template:Article summary wiki: Adding Microsoft fonts Template:Article summary end

General information

Infinality-bundle is a collection of software providing an easy, 'install-and-forget' method of improving text rendering in Arch Linux. The packages are fully compatible with system libraries available in the [extra] repository and are meant to be used as drop-in replacements for them.

Currently, the bundle comprises:

  • freetype2-infinality-ultimate - freetype2 built with Infinality and additional patches
  • fontconfig-infinality-ultimate - fontconfig optimized for use with freetype2-infinality-ultimate, including separate configuration presets for free (default), MS and custom font collections
  • cairo-infinality-ultimate - cairo built with Ubuntu and additional patches

All libraries are built in a clean chroot environment and are available for both i686 and x86_64 architectures, including multilib support.

For best results and users' convenience, a complementary repository infinality-bundle-fonts is available, offering a wide selection of all necessary typefaces needed to create and reproduce hypertext documents. All fonts were manually selected, ensuring high quality text rendering as well as compatibility with proprietary equivalents used for the Web and the office. All fonts are freely available and all but one family are licensed under GPL, OFL, Apache or compatible, non-restrictive licenses.

By default, no post installation configuration is required. However, for maximum flexibility users can easily customize the bundle depending on their needs.


A typical and recommended setup consists of both libraries for a selected architecture and the basic collection of fonts:

1. Add the following entries to /etc/pacman.conf:

  • base system libraries
Server =$arch
  • multilib support (if applicable)
Server =$arch
  • free font collection
Server =

2. Import and sign the key:

# pacman-key -r 962DDE58
# pacman-key --lsign-key 962DDE58

3. Refresh pacman database:

# pacman -Syyu

4. Finally, install the software:

# pacman -S infinality-bundle infinality-bundle-multilib infinality-bundle-fonts

When pacman resolves dependencies and encounters a conflicting package, e.g.:

resolving dependencies...
looking for inter-conflicts...
:: freetype2-infinality-ultimate and freetype2 are in conflict. Remove freetype2? [y/N]

answer yes.

5. In order to use infinality-bundle-fonts, you will need a few font packages available in the official Arch Linux repositories (unless they have already been installed in your system as dependencies for other software):

# pacman -S gsfonts ttf-droid ttf-liberation ttf-mph-2b-damase xorg-fonts-type1

6. Restart X server.

In case of occasional server down times, there is always a backup copy of the repositories available via Dropbox.

Customization and troubleshooting

  • One frequent issue users may face with this repos is that the package database or signatures do not check out. Often times a simple force refresh of the package lists (pacman -Syy) will fix the issue. If that fails, try removing the infinality-bundle files from /var/lib/pacman/sync and then resyncing again.
  • When installing some packages (like libgdiplus), you may encounter an error:
:: cairo and cairo-infinality-ultimate are in conflict. Remove cairo-infinality-ultimate? [y/N] n
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)

If this happens, install the new package with # pacman -Sd foo instead.

  • It is possible to skip installation of infinality-bundle-fonts if you want to use Microsoft proprietary font collection instead. If this is the case, you have to activate fontconfig MS preset. To do so, issue
# fc-presets set
1) custom
2) ms
3) free

and hit 2.

  • If you would rather use a custom font collection, there is a custom preset available that should let you adjust fontconfig parameters accordingly. When you active the 'custom' preset, the content of 'custom' configuration files (/etc/fonts/conf.avail.infinality/custom) can be freely modified. When you are done, do not forget to create a backup copy the 'custom' directory.
  • Emacs users have reported issues with the default variable pitch typeface after installation of infinality-bundle-fonts. To make Emacs behave correctly with free fonts, you have to specify a variable pitch family in $HOME/.emacs, which can be any but Noto Sans (a.k.a. 'sans' or 'system font'), e.g.:
 '(default ((t (:family "Liberation Mono" :slant normal :weight regular :height 98))))
 '(variable-pitch ((t (:family "Liberation Sans" :slant normal :weight regular :height 98 )))))
  • Users of popular Desktop Environments (Gnome, KDE, Xfce4, Cinnamon, LXDE) should adjust font settings via their DE's control panel. Basically, the settings should duplicate those found in the freetype2 configuration file (/etc/profile.d/
Xft.antialias: 1
Xft.autohint: 0
Xft.dpi: 96
Xft.hinting: 1
Xft.hintstyle: hintfull
Xft.lcdfilter: lcddefault
Xft.rgba: rgb

If your DE's control panel does not let you set any of the above, adjust only those available.

See also