New To Ubuntu

Wednesday, November 29, 2006

Make Fonts Looks Like Windows

This post http://www.linuxsir.org/bbs/showthread.php?t=266659(in Chinese) provides detailed explanations for how to set up fonts under Ubuntu (or Debain) to make it looks like fonts under windows. The following is a short version with no technical explanations

1) Install MS core fonts

sudo apt-get install msttcorefonts

This will install following fonts to /usr/share/fonts/truetype/msttcorefonts

Andale Mono, Arial, Comic Sans MS, Courier New, Georgia
Impact, Times New Roman, Trebuchet MS, Verdana, Webdings


2) Install extra MS fonts

Do the following as root

Make a directory

mkdir /usr/share/fonts/truetype/winxp


Copy following fonts to the directory

tahoma.ttf
tahomab.ttf
simsun.ttf
mingliu.ttf

(The last two fonts are for Chinese characters)

For me, my windows C drive is mounted at /media/winC, so the command is:

cd /media/winC/WINDOWS/Fonts/
cp tahoma* /usr/share/fonts/truetype/winxp
cp simsun.ttc /usr/share/fonts/truetype/winxp/simsun.ttf
cp mingliu.ttc /usr/share/fonts/truetype/winxp/mingliu.ttf

And make the file readable to all users

chmod 644 /usr/share/fonts/truetype/winxp/*

3) Create font config files

Extract and save following files

Save this file http://www.box.net/public/oqkaukrzu4 as /etc/fonts/msttcorefonts.conf

Save this file http://www.box.net/public/n7cnpo8co4 /etc/fonts/local.conf

Save this file http://www.box.net/public/cogpitbyc9 as /etc/fonts/cjk.conf

Check which file language-selector.conf is linked to

ls -l /etc/fonts/language-selector.conf

Gives:

lrwxrwxrwx 1 root root 45 2006-11-19 15:12 /etc/fonts/language-selector.conf -> /usr/share/language-selector/fontconfig/zh_CN

So I replace /usr/share/language-selector/fontconfig/zh_CN with this file http://www.box.net/public/vy10g6mhb9

4) Update font by following command

sudo fc-cache -fv

And restart X windows.

After these the fonts look just like under Windows, sharp and clear

Following is the picture before setup
But I am not sure which way is better, sharp and clear fonts are pretty, but I find it's hard for my eyes.

Labels:

0 Comments:

Post a Comment

<< Home