Using Sharp Fonts On A GNOME Desktop - Page 2
3 Configure X And GNOMEFirst we must configure X to use 96 dpi by modifying /etc/X11/xorg.conf. Open a terminal and run sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak Search for the monitor section (Section "Monitor"). Put the following lines at the end of that section: # DisplaySize 270 203 # 1024x768 96dpi If you have another screen resolution than the ones listed above, please add a line for your resolution. You can calculate the DisplaySize like this: displaysize = (<pixelsize>/96)*25.4 Then uncomment the line that suits your screen resolution. If you have a resolution of 1024x768 pixels, the monitor section should look like this in the end:
Then reboot the system: sudo shutdown -r now After the system has come up again, open a terminal again and run the following commands: xdpyinfo | grep dimensions The output should display the correct screen resolution, like this: falko@falko-desktop:~$ xdpyinfo | grep dimensions xdpyinfo | grep resolution This should show that X is now using 96 dpi: falko@falko-desktop:~$ xdpyinfo | grep resolution Now we must tell GNOME to use 96 dpi. Go to System > Preferences > Font:
Click on the Details button. The following window comes up where you must select 96 dpi as resolution (usually this is already the default value):
4 Install Microsoft FontsTo install Microsoft fonts on your system, please make sure that the Ubuntu universe and multiverse repositories are enabled in /etc/apt/sources.list: sudo gedit /etc/apt/sources.list For Ubuntu Edgy Eft, you should have the following lines in that file (please use a repository that is close to you):
And for Ubuntu Feisty Fawn, the lines should look like this:
If you had to modify /etc/apt/sources.list, please run this command to update the packages database: sudo apt-get update Then install the Microsoft fonts: sudo apt-get install msttcorefonts In the next step we must copy the Tahoma fonts (which aren't included in the msttcorefonts package) from our Windows system to our Linux system and register the new Tahoma fonts. First we create a new directory for the Tahoma fonts: sudo mkdir /usr/share/fonts/truetype/custom Then copy the files tahoma.ttf and tahomabd.ttf from the C:\WINDOWS\Fonts directory on your Windows system to /usr/share/fonts/truetype/custom/ (e.g. with a USB stick). Next create the file /etc/defoma/hints/custom.hints: sudo gedit /etc/defoma/hints/custom.hints
Afterwards, we register our new fonts: sudo /usr/bin/defoma-font -v register-all /etc/defoma/hints/custom.hints
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com
Red Hat Virtual Experience - a free virtual event. Dec. 9th





print: 
Recent comments
8 hours 30 min ago
14 hours 18 min ago
16 hours 10 min ago
17 hours 55 min ago
21 hours 45 min ago
1 day 3 hours ago
1 day 3 hours ago
1 day 7 hours ago
1 day 13 hours ago
1 day 18 hours ago