summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/fonts/cm-unicode/INSTALL
blob: a3258357bb05e343ece2dafb2bdd0f9d7c7760c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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/share/fonts :

mkdir -p /usr/share/fonts/cm-unicode

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

cp *.afm /usr/share/fonts/cm-unicode/
cp *.pfb /usr/share/fonts/cm-unicode/

If you are using XFree86 prior to 4.3 you shoul also copy fonts.scale there.
Then change directory to /usr/share/fonts/cm-unicode/ :

cd /usr/share/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/share/fonts/cm-unicode/

Then add  
FontPath     "/usr/share/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/share/fonts/cm-unicode</dir>
to /etc/fonts/fonts.conf or better to /etc/fonts/local.conf then run

fc-cache


Installation for ghostscript 
----------------------------
(Optional, modern versions of ghostscript retreive information from fontconfig)


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/share/fonts/cm-unicode/*.afm .
ln -s /usr/share/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

Note that pdfwriter from ghostscript versions prior to 8.x does not
understand characters not existing in the encoding. These fonts were
tested with ps2pdf script from AFPL ghostscript-8.14.

That's all.