Computer Modern Unicode fonts: Installation




Homepage
Mirror at SF.net


About
News
License
Download
Install
Contact
Warnings


Installation for XFree86 (X.Org)

Unpack the archive file containing fonts in some temporal directory, for example /tmp :

cd /tmp
tar xzvf cm_unicode-VERSION-pfb.tar.gz
cd cm-unicode-VERSION

where VERSION is version number of this font pack. Then create cm-unicode/ directory at the place, where your X stores fonts, for example /usr/X11R6/lib/X11/fonts :

mkdir -p /usr/X11R6/lib/X11/fonts/cm-unicode

You should become root to do it. Then copy font files there:

cp *.afm /usr/X11R6/lib/X11/fonts/cm-unicode/
cp *.pfb /usr/X11R6/lib/X11/fonts/cm-unicode/

If you are using XFree86 prior to 4.3 you should also copy fonts.scale there. Then change directory to /usr/X11R6/lib/X11/fonts/cm-unicode/ :

cd /usr/X11R6/lib/X11/fonts/cm-unicode/

and do

mkfontscale # if you are using XFree86-4.3 or later or recent X.Org
mkfontdir

Currently mkfontscale and mkfontdir may produce errors, so copy fonts.dir and fonts.scale files supplied into /usr/X11R6/lib/X11/fonts/cm-unicode/

Then add

FontPath     "/usr/X11R6/lib/X11/fonts/cm-unicode/" 

to "Files" Section of etc/X11/xorg.conf (/etc/X11/XF86Config). On the next run X.Org (XFree86) will load these fonts.

If you are using fontconfig (X.Org, XFree86-4.3, may be installed on XFree86-4.2) you should add a line

<dir>/usr/X11R6/lib/X11/fonts/cm-unicode</dir>

to /etc/fonts/fonts.conf or better to /etc/fonts/local.conf then run

fc-cache

Installation for ghostscript

Assuming that you have rather new ghostscript version like 7.x go to default ghostscript font directory, typically /usr/share/ghostscript/fonts, then add links to fonts installed for X or copy them:

cd /usr/share/ghostscript/fonts
ln -s /usr/X11R6/lib/X11/fonts/cm-unicode/*.afm .
ln -s /usr/X11R6/lib/X11/fonts/cm-unicode/*.pfb .

Then go to the ghostscript library directory, for example

cd /usr/share/ghostscript/?.??/lib

where ?.?? is ghostscript version. Copy Fontmap.CMU from tarball:

cp /tmp/cm-unicode-VERSION/Fontmap.CMU .

Then add following line to Fontmap file:

(Fontmap.CMU) .runlibfile