Here is how to hopefully get this set up relatively quickly on your Fedora system. This will set up a system-wide font configuration that can apply to all users.
1) AS ROOT: Make a directory called /usr/share/fonts/windows/ and put all your Windows fonts in there. This step is strongly recommended. I'd provide you nicely packaged font rpms like I have on my system, but that might be illegal or something.
2) AS YOU: Use your gnome / KDE configuration area to choose the fonts you want displayed in your desktop environment.
3) AS ROOT: This will install the infinality repository on your system:
- Code: Select all
rpm -Uvh http://www.infinality.net/fedora/linux/infinality-repo-1.0-1.noarch.rpm
4) AS ROOT: This installs the infinality patched version of freetype and configurations:
- Code: Select all
yum -y install freetype-infinality fontconfig-infinality
5) AS ROOT: This sets fontconfig to use rendering defaults across all users on the system. You can change the settings with /etc/fonts/infinality/infctl.sh and /etc/fonts/infinality/infinality.conf. See the readme file in /etc/fonts/infinality/. Also adjust /etc/profile.d/infinality-settings.sh to your preference.
6) AS YOU: This causes you to use the global font configuration instead of one that only applies to your user:
- Code: Select all
mv ~/.fonts.conf ~/fonts.conf.bak
NOTE: You should do this for every user that will be logging in and wanting nice fonts.
7) AS ROOT: If you don't want KDE or something else to go and sabotage you later, make this file immutable. Become root, and do this. Replace "YOURUSER" with your username:
- Code: Select all
echo "<?xml version='1.0'?>" > /home/YOURUSER/.fonts.conf
echo "<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>" >> /home/YOURUSER/.fonts.conf
echo "<fontconfig>" >> /home/YOURUSER/.fonts.conf
echo "</fontconfig>" >> /home/YOURUSER/.fonts.conf
chattr +i /home/YOURUSER/.fonts.conf
NOTE: You should do this for every user that will be logging in and wanting nice fonts.
8) Then add/replace this in /etc/X11/Xresources (as root) and ~/.Xresources (as you). This is done AUTOMATICALLY if you use /etc/profile.d/infinality-settings.sh ! :
- Code: Select all
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull
Xft.hinting: 1
Xft.antialias: 1
Xft.dpi: 96
Xft.rgba: rgb
9) TIPS
- Prefer *.ttf fonts over *.otf fonts if you like TT hinting. If you use *.otf versions, fontconfig should then be set to render them with autohint instead.
- Use *this* version of Inconsolata: http://code.google.com/p/googlefontdire ... consolata/
- Remove all fonts related to Helvetica because they have extremely poor TT instructions:
- Code: Select all
find . -iname "*helvetica*" -exec mv {} /tmp/ \;
- There is TONS of stuff you can adjust in /etc/profile.d/infinality-settings.sh ! Please look at that file!
10) Log out and log in (or reboot your system to be safe).
This should make things work. Keep in mind that you shouldn't modify your fonts via the gnome or KDE GUI interface afterwards, as it will interfere with this or just not work.