Ubuntu font autohinter.

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Ubuntu font autohinter.

Post 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>
User avatar
Dave
Jedi Knight
Posts: 901
Joined: 2004-02-06 11:55pm
Location: Kansas City, MO

Post 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.
User avatar
Dave
Jedi Knight
Posts: 901
Joined: 2004-02-06 11:55pm
Location: Kansas City, MO

Post 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>
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post 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.
Post Reply