Page 1 of 1

Ubuntu font autohinter.

Posted: 2006-07-01 08:46am
by phongn
For those of you who think the fonts in Ubuntu could still look a bit nicer, dump this XML into ~/.fonts.conf (or /etc/fonts/local.conf), log out and log back in. It enables the autohinter for antialiasing.

Code: Select all

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match target="font">
    <edit name="autohint" mode="assign">
      <bool>true</bool>
    </edit>
  </match>
</fontconfig>

Posted: 2006-07-01 09:57am
by Dave
Nice!

Question: Can I take font files from Windows and move them to Linux?
It would just be nice to have Time New Roman and such on my Linux box as well as regular Windows.

Posted: 2006-07-01 10:01am
by Dave
Oh, I just looked in the fonts.conf file and found the following.

It looks like the same thing. (I'm running Kubuntu Breezy Badger, but i don't know the exact version number.)

Code: Select all

<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font" >
  <edit mode="assign" name="hinting" >
   <bool>true</bool>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hintstyle" >
   <const>hintmedium</const>
  </edit>
 </match>
</fontconfig>

Posted: 2006-07-01 11:11am
by phongn
The above XML isn't quite the same as the autohinter.
Dave wrote:Question: Can I take font files from Windows and move them to Linux? It would just be nice to have Time New Roman and such on my Linux box as well as regular Windows.
If you're running Ubuntu, enable the multiverse repositories and install the mssttcorefonts package. You can also dump TrueType and OpenType fonts in /usr/share/fonts/truetype as root and then run fc-cache (again, as root) to have the system see it.