Jul 222008
 


Installing fonts in openSUSE is fairly straight forward and involves a couple of steps.

To install fonts in openSUSE, try the following:

1. Copy the Fonts

In openSUSE, the fonts directories are under /usr/share/fonts directory. Copy the fonts (.TTF) files into one of the fonts directory based on the font type.

2. Configure Fonts

Now, run the fonts-config command to configure the installed X11 fonts

opensuse:~ # fonts-config

That should install and configure the fonts on your openSUSE.

Install Microsoft Fonts

To install microsoft fonts, there is a preset script that can downloaded from openSUSE downloads for openSUSE 10.3. But, this should work just fine on openSUSE 11.0 as well.

Because, the script downloads installer executables for Windows, we need cabextract installed on our computer to get this script to successfully download and install the microsoft fonts on your openSUSE.

opensuse:~ # yast2 –install cabextract

Now, download and run the script to install the  Microsoft fonts

opensuse:~ # wget http://download.opensuse.org/update/10.3/scripts/fetchmsttfonts.sh
opensuse:~ # chmod 755 fetchmsttfonts.sh
opensuse:~ # ./fetchmsttfonts.sh

note: No proxy is used. Please set the environment variable “http_proxy”
note: to your favorite proxy, if you want to use a proxy for the download.
note:
note:   bash: export http_proxy=”http://proxy.example.com:3128/”
note:   tcsh: setenv http_proxy “http://proxy.example.com:3128/”
EULA:
Fetching   … done

Trying to find the fastest server:
switch … 0 sec
mesh … 1 sec
jaist … 1 sec
kent … 1 sec
nchc … 2 sec
heanet … 0 sec
easynews … 2 sec
optusnet … 1 sec
The winner is: >> switch <<

andale32.exe (http://switch.dl.sourceforge.net/sourceforge/corefonts/andale32.exe):
Fetching   … done
Extracting … failed … deleted!
andale32.exe (http://switch.dl.sourceforge.net/sourceforge/corefonts/andale32.exe):
Fetching   … done
Extracting … failed … deleted!
…..
….

..
Creating fonts.{scale,dir} files ………
/etc/fonts/suse-font-dirs.conf unchanged
/etc/fonts/suse-hinting.conf unchanged
/etc/fonts/suse-bitmaps.conf unchanged
Creating cache files for fontconfig ……………………………
Creating 32bit cache files for fontconfig ……………………………
generating java font setup
Warning: cannot find a sans serif Japanese font. Japanese in Java might not work.
Warning: cannot find a serif Japanese font. Japanese in Java might not work.
Warning: cannot find a sans serif simplified Chinese font. Simplified Chinese in Java might not work.
Warning: cannot find a serif simplified Chinese font. Simplified Chinese in Java might not work.
Warning: cannot find a sans serif traditional Chinese font. Traditional Chinese in Java might not work.
Warning: cannot find a serif traditional Chinese font. Traditional Chinese in Java might not work.
Warning: cannot find a sans serif Korean font. Korean in Java might not work.
Warning: cannot find a serif Korean font. Korean in Java might not work.
*** Fonts installed. ***