| blog |
Friday, April 27, 2007
Fixing Fonts on Ubuntu Edgy/Feisty Upgrade

A while ago, I upgraded all my Ubuntu installs to Edgy. My laptop still seemed fine, but the fonts on my other machines (work, desktop) were messed up. I searched for a bit, and then just gave up and dealt with it. I found out the benefits of 85% mechanical keyboards and placed an order for one. I upgraded recently to Feisty, and it didn’t fix the problem, so I searched the web some more. Finally, I was able to find the solution, so hopefully by posting it here, other people will be able to find it quickly. Good title, and Google pagerank. 🙂

The issue with the fonts was due to a configuration problem with the X server. After some digging through forums and various tech blogs, I stumbled upon a solution that worked perfectly.

Here’s what you need to do:

1. **Open a Terminal**: You can do this by pressing `Ctrl + Alt + T`.

2. **Edit the X Configuration File**: Type the following command to open the X configuration file in a text editor with root privileges:
“`bash
sudo nano /etc/X11/xorg.conf
“`

3. **Locate the FontPath Section**: Look for the section that lists the FontPaths. It should look something like this:
“`plaintext
Section “Files”
FontPath “/usr/share/fonts/X11/misc”
FontPath “/usr/share/fonts/X11/100dpi/:unscaled”
FontPath “/usr/share/fonts/X11/75dpi/:unscaled”
FontPath “/usr/share/fonts/X11/Type1”
FontPath “/usr/share/fonts/X11/100dpi”
FontPath “/usr/share/fonts/X11/75dpi”
FontPath “/usr/share/fonts/X11/Type1”
FontPath “/usr/share/fonts/X11/Type1”
FontPath “/usr/share/fonts/X11/Type1”
EndSection
“`

4. **Add Missing FontPaths**: Ensure that all necessary font paths are included. If any paths are missing, add them. Here’s an example of what your section might need to include:
“`plaintext
Section “Files”
FontPath “/usr/share/fonts/X11/misc”
FontPath “/usr/share/fonts/X11/cyrillic”
FontPath “/usr/share/fonts/X11/100dpi/:unscaled”
FontPath “/usr/share/fonts/X11/75dpi/:unscaled”
FontPath “/usr/share/fonts/X11/Type1”
FontPath “/usr/share/fonts/X11/100dpi”
FontPath “/usr/share/fonts/X11/75dpi”
FontPath “/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType”
EndSection
“`

5. **Save and Exit**: Save the changes and exit the text editor. In `nano`, you can do this by pressing `Ctrl + O` to write out the changes, and then `Ctrl + X` to exit.

6. **Restart the X Server**: Restart your X server for the changes to take effect. You can do this by logging out and logging back in, or by rebooting your machine.

After making these changes, my fonts were back to normal across all my machines. It’s a simple fix, but it took a while to track down. Hopefully, this post helps anyone else who encounters the same issue.

By the way, the mechanical keyboard has been a fantastic upgrade—highly recommend it for anyone who spends a lot of time typing!

ShareTweet about this on TwitterShare on Google+Share on FacebookEmail this to someone
Posted by alan to geek at 11:37 am PT | Link | Comments (4)

RSS feed

4 Comments »

Comment by MrsVeteran
2007-04-28 09:51:28

Argh. Thanks for posting this, but you know, this is the kind of thing that seriously pisses me off about Linux: changing things for what appears to be no good reason. I mean — WTF? What does it matter if it’s /fonts/X11 or X11/fonts?

Bad Ubuntu! No cookie!

🙂

 
Comment by Nuances
2007-05-05 14:36:26

You’d expect them to at least update the file; sheesh.

 
Comment by portait
2007-05-08 23:08:20

Fonts are still a big issue in Ubuntu.

 
Comment by limdz
2007-06-13 23:04:32

The very big problem here is that the user cannot see the font even in gedit. So the user cannot change the section easily. So, my friend suggest me to send it to someone and ask somebody to edit it for you instead. It is easier a lot that way.

Btw, visit my blog @ light12.wordpress.com and giv some comment. Thanks.

 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> in your comment.

All content Copyright © 2002-2009 Alan Penner
Powered byWordPress, Penner Hosting and Superb Internet
Some Rights Reserved
penner42
Redistribution is permitted under the terms of
this Creative Commons License