| 1 |
Installation for XFree86 (X.Org) |
| 2 |
-------------------------------- |
| 3 |
|
| 4 |
Unpack the archive file containing fonts in some temporal directory, for |
| 5 |
example /tmp : |
| 6 |
|
| 7 |
cd /tmp |
| 8 |
tar xzvf cm_unicode-VERSION-pfb.tar.gz |
| 9 |
cd cm-unicode-VERSION |
| 10 |
|
| 11 |
where VERSION is version number of this font pack. |
| 12 |
Then create cm-unicode/ directory at the place, where your X stores fonts, for example |
| 13 |
/usr/share/fonts : |
| 14 |
|
| 15 |
mkdir -p /usr/share/fonts/cm-unicode |
| 16 |
|
| 17 |
You should become root to do it. Then copy font files there: |
| 18 |
|
| 19 |
cp *.afm /usr/share/fonts/cm-unicode/ |
| 20 |
cp *.pfb /usr/share/fonts/cm-unicode/ |
| 21 |
|
| 22 |
If you are using XFree86 prior to 4.3 you shoul also copy fonts.scale there. |
| 23 |
Then change directory to /usr/share/fonts/cm-unicode/ : |
| 24 |
|
| 25 |
cd /usr/share/fonts/cm-unicode/ |
| 26 |
|
| 27 |
and do |
| 28 |
|
| 29 |
mkfontscale # if you are using XFree86-4.3 or later or recent X.Org |
| 30 |
mkfontdir |
| 31 |
|
| 32 |
Currently mkfontscale and mkfontdir may produce errors, so copy |
| 33 |
fonts.dir and fonts.scale files supplied into |
| 34 |
/usr/share/fonts/cm-unicode/ |
| 35 |
|
| 36 |
Then add |
| 37 |
FontPath "/usr/share/fonts/cm-unicode/" |
| 38 |
to "Files" Section of /etc/X11/xorg.conf (/etc/X11/XF86Config). On the |
| 39 |
next run X.Org (XFree86) will load these fonts. |
| 40 |
|
| 41 |
If you are using fontconfig (X.Org, XFree86-4.3, may be installed on |
| 42 |
XFree86-4.2) you should add a line |
| 43 |
<dir>/usr/share/fonts/cm-unicode</dir> |
| 44 |
to /etc/fonts/fonts.conf or better to /etc/fonts/local.conf then run |
| 45 |
|
| 46 |
fc-cache |
| 47 |
|
| 48 |
|
| 49 |
Installation for ghostscript |
| 50 |
---------------------------- |
| 51 |
(Optional, modern versions of ghostscript retreive information from fontconfig) |
| 52 |
|
| 53 |
|
| 54 |
Assuming that you have rather new ghostscript version like 7.x go to |
| 55 |
default ghostscript font directory, typically /usr/share/ghostscript/fonts, then |
| 56 |
add links to fonts installed for X or copy them: |
| 57 |
|
| 58 |
cd /usr/share/ghostscript/fonts |
| 59 |
ln -s /usr/share/fonts/cm-unicode/*.afm . |
| 60 |
ln -s /usr/share/fonts/cm-unicode/*.pfb . |
| 61 |
|
| 62 |
Then go to the ghostscript library directory, for example |
| 63 |
|
| 64 |
cd /usr/share/ghostscript/?.??/lib |
| 65 |
|
| 66 |
where ?.?? is ghostscript version. Copy Fontmap.CMU from tarball: |
| 67 |
|
| 68 |
cp /tmp/cm_unicode-VERSION/Fontmap.CMU . |
| 69 |
|
| 70 |
Then add following line to Fontmap file: |
| 71 |
|
| 72 |
(Fontmap.CMU) .runlibfile |
| 73 |
|
| 74 |
Note that pdfwriter from ghostscript versions prior to 8.x does not |
| 75 |
understand characters not existing in the encoding. These fonts were |
| 76 |
tested with ps2pdf script from AFPL ghostscript-8.14. |
| 77 |
|
| 78 |
That's all. |