Debian Codegraph @

texk/ttf2pk2/README

raw
1 This directory contains ttf2tfm and ttf2pk, two utilities based on
2
3 afm2tfm (dvipsk distribution),
4 gsftopkk (dvipsk distribution),
5 and the FreeType rasterizer for TrueType fonts.
6
7
8 Compile the FreeType library first! It is recommended to use the kpathsea
9 library if you want to use the programs with web2c resp. teTeX. Source files
10 for emTeX-like search routines are included; similarly, support for MiKTeX
11 file searching routines is available if `MIKTEX' is defined during
12 compilation. Nevertheless, as a last resort, you can compile both programs
13 without a search library too.
14
15 The kpathsea library is *not* part of the ttf2pk package (see notes below).
16
17
18
19 Under UNIX-like systems say
20
21 ./configure --prefix=/usr/local/TeX
22 --with-kpathsea-lib=<LIBDIR> \
23 --with-kpathsea-include=<INCLUDEDIR>
24 make
25 make install
26
27 for a normal compilation and installation. Replace `/usr/local/TeX' with a
28 path to your TeX distribution.
29
30
31 [Note 1:
32 Try to find `libkpathsea.*' on your system. Use this directory as the
33 argument for --with-kpathsea-lib. Then try to find `kpathsea/tex-file.h'
34 and use the parent directory of kpathsea as the argument for
35 --with-kpathsea-include. This should work in most cases. If you can't find
36 the library, you probably have a web2c package with statically linked
37 binaries. This means that you have to get the web2c sources from CTAN,
38 configure it with something like
39
40 ./configure --prefix=/usr/local/TeX --datadir=/usr/local/TeX \
41 --enable-shared --disable-static
42
43 according to your setup; then change to the kpathsea directory and say
44 `make' and `make install' (Do the latter with caution not to overwrite
45 binaries like kpsewhich).
46
47 It even works with the source tree from the TeX Live CD! You just have
48 to add a proper --srcdir option to the configure script.
49
50 Unfortunately, teTeX-0.4 uses a very old kpathsea library version without
51 automatical shared-library support, thus you have to install the static
52 libraries:
53
54 .) unpack the sources (basically you need only the contents of kpse-2.6
55 and the two subdirs `kpathsea' and `make'.
56
57 .) say
58
59 ./configure --prefix=...
60 make
61
62 in the kpse-2.6 directory
63
64 .) say
65
66 make install-library
67
68 in the kpathsea subdirectory. See Note 2 also.
69
70 DON'T USE A NEWER KPATHSEA VERSION IF YOU USE teTeX 0.4 BINARIES! Newer
71 kpathsea versions are not compatible with version 2.6.
72
73 Note 2:
74 It seems that c-auto.h created during the kpathsea library compiling
75 process won't be installed for some older web2c versions. You should add
76 it manually, i.e., copy <web2c source tree>/kpathsea/c-auto.h to the
77 location where the other kpathsea header files have been installed.
78
79 Note 3:
80 If you want to use the --srcdir option of the configure script, you must
81 compile FreeType with --srcdir too. You have to use the same directory
82 structure to make it work (i.e., if you have said for FreeType
83 `./configure --srcdir=foo', and you are in the `bar' directory, FreeType's
84 configure script will generate all the needed subdirs for compiling
85 FreeType. You've then manually to add the directory `bar/contrib/ttf2pk';
86 there you should start to say ./configure --srcdir=foo/contrib/ttf2pk').]
87
88
89
90 Use Makefile.dm for emx + dmake and say
91
92 dmake -r -f Makefile.dm
93
94 [Note: It should work with djgpp too, but I haven't tested this.]
95
96
97 ttf2pk and ttf2tfm are already part of MiKTeX.
98
99
100
101 Primary author of afm2tfm: T. Rokicki,
102 Primary author of gsftopk: P.Vojta
103 Primary author of the kpathsea library,
104 afm2tfm/gsftopk adaptation: K. Berry.
105
106 --
107 Frederic Loyer <[email protected]>
108 Werner Lemberg <[email protected]>