Personal tools
About this blog
This is where I maintain running notes of my thoughts

Syndicate my Blog

 Subscribe in a reader


Number of visitors
since 27 March 2006
Add to Technorati Favorites

 
Document Actions

Customising fonts used in Ubuntu

by Mukul Dharwadkar posted at 2007-05-17 16:42 last modified 2007-05-17 16:42

MeetMeNow 14-day free trial; easy web meetings VistaPrint.com

Digg!

As a part of larger (personal) project to introduce Linux in my daily working environment, I dabbled around with Ubuntu & Fedora Core 6 dual booting with Windows XP. I burnt my fingers badly while trying to dual boot my computer with Windows XP and Ubuntu, but that is another story.

Finally I did manage to get Ubuntu 7.04 and Windows XP running together happily. The next task at hand was to customise Linux so that I get (almost) the same Windows-like look and feel. This task included:

  1. Changing the background colour to match Windows Desktop (Easy)
  2. Changing the desktop wall paper (Easy)
  3. Having a similar theme for look and feel (Moderate)
  4. Using the same preferred fonts (Easy on Fedora, Hard on Ubuntu)

Problem:

Actually customising the fonts should not be very difficult. But in Ubuntu it turned out to be very difficult (at least in the beginning). To open the fonts folder on Linux you can enter

fonts:///

Location Barin the File Browser location bar (similar to address bar in Windows Explorer). The location bar can be activated by either clicking on the small icon next to the folder list or by clicking on Go --> Location. In Fedora this open a hidden folder called .fonts that is in the users home folder. This folder contains all the user specific fonts in Fedora. When I tried to browse to this location in Ubuntu, it took me to the system fonts folder where a non-root user write anything. I even tried opening the location by sudo-ing. Any changes that I made to that folder would not reflect in my profile. I searched a lot on the internet for a solution for this problem and was scared by the results and suggestion.

Solution:

I thought I would check the fonts configuration file /etc/fonts.conf and see if I find anything. I checked the Fonts Directory List section and saw the familiar .fonts location.

<!-- Font directory list -->
        <dir>/usr/share/fonts</dir>
        <dir>/usr/share/X11/fonts</dir> <dir>/usr/local/share/fonts</dir>
        <dir>~/.fonts</dir>

But when I looked again for the .fonts folder in my home folder, I couldn't find it. Then I thought I would TRY creating that folder myself. It seemed like a long shot, but since I was running out of ideas, I was ready for anything. I created that folder and copied the TrueType font files from Windows in there. Next when I tried to customize the fonts, I was so very happy to see those fonts in the available list. Now my look and feel is like Windows, but I am using Ubuntu 7.04.

The URL to Trackback this entry is:
http://www.dharwadkar.com/weblog/ubuntu05/tbping

Re:Customising fonts used in Ubuntu

Posted by Jeremy Riley at 2007-07-20 14:50
In Ubuntu and most Linux distributions any folder or file beginning with a '.' (minus single quotes) is a hidden file/folder and not viewable by default. Anytime you need to view, access a file/folder beginning with a '.' you need to change folder view to show hidden files/folders. This can quickly be achieved by using the key-combo: "control+h" (again minus quotes). Now all sorts of hidden files/folders should appear (especially if your in the /home/yourusername folder and you have added many applications since initial install).

From the terminal hidden files/folders can be viewed by adding an '-a' argument after the list command:
$ ls -a

Example:
you@yourhost:$ ls -a /home/yourname

Add comment

You can add a comment by filling out the form below. Plain text formatting.

(Required)
(Required)

Listed on BlogShares
Recent entries
My experience with virtualization Mukul Dharwadkar 2008-06-30
Happy Father's day Mukul Dharwadkar 2008-06-16
Use the plain old notepad as your personal diary Mukul Dharwadkar 2008-05-07
Taxing time to file tax returns Mukul Dharwadkar 2008-02-29
Fedora 8 - Still not there yet Mukul Dharwadkar 2008-02-28
Recent trackbacks
2006-11-07
2006-11-07
2006-11-07
2006-11-07
2006-11-07
« November 2008 »
Su Mo Tu We Th Fr Sa
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
 

This site is:

Powered by Plone, the Open Source Content Management System