| 1 |
|
| 2 |
PS2PK installation summary |
| 3 |
-------------------------- |
| 4 |
(March 1995) |
| 5 |
|
| 6 |
For the version which works with Karl Berry's path searching, |
| 7 |
run configure in this directory and use the Makefile which is |
| 8 |
generated. Otherwise follow the instructions below |
| 9 |
There needs to be a fully configured kpathsea directory |
| 10 |
at the same level as this. |
| 11 |
|
| 12 |
Special versions of MakeTeXPK and texmf.cnf are provided |
| 13 |
These are needed for the proper running of this version |
| 14 |
of ps2pk. |
| 15 |
|
| 16 |
(January 1994) |
| 17 |
|
| 18 |
The ./src directory contains the sources to build the following programs: |
| 19 |
- ps2pk a program to build PK fonts from PostScript type1 fonts |
| 20 |
- pk2bm a program that allows to look at a PK character. |
| 21 |
|
| 22 |
To install and use these programs follow next steps: |
| 23 |
1) - Go to the ./src directory. |
| 24 |
|
| 25 |
Select a Makefile.xxx |
| 26 |
System xxx |
| 27 |
------------------------------------------------------------ |
| 28 |
UNIX unx A universal UNIX makefile using gcc. |
| 29 |
This makefile is tailored to BSD like UNIX-es. On |
| 30 |
SYS5 UNIX systems some small changes may be |
| 31 |
necessary. |
| 32 |
|
| 33 |
MSDOS bcc Borland C 3.1. The programs compile but ps2pk.exe |
| 34 |
does not run (program does not fit in 640k!). |
| 35 |
|
| 36 |
djg Delorie's port of gcc. The programs compile and run |
| 37 |
on 386 compatible machines only. Ready compiled |
| 38 |
versions are available that run on MSDOS or |
| 39 |
MSWindows (386 with or without a coprocessor needed). |
| 40 |
|
| 41 |
emx Eberhardt Mattes port of GCC with an extender that |
| 42 |
can be used on MSDOS and OS2. Only 386. |
| 43 |
|
| 44 |
wat For the Watcom/386 compiler. |
| 45 |
|
| 46 |
Copy the selected Makefile.xxx to Makefile. |
| 47 |
|
| 48 |
Edit the Makefile to adapt the T1INPUTS path and the bin and man |
| 49 |
directories. |
| 50 |
|
| 51 |
- Do a `make'. This will create the tools above. |
| 52 |
The master Makefile calls the appropriate Makefile in the ./type1 |
| 53 |
directory to install a type1 library. If your compiler has problems |
| 54 |
in compiling this library you possibly have to adapt that |
| 55 |
makefile to your needs. |
| 56 |
|
| 57 |
- Do a `make install'. |
| 58 |
This will install the above programs. |
| 59 |
|
| 60 |
- Do a `make install.man'. |
| 61 |
This will install manual pages for the above programs. |
| 62 |
|
| 63 |
2) Testing ps2pk from ./src directory. |
| 64 |
The directory ../Utopia contains the Utopia-Regular font donated by |
| 65 |
Adobe. To make from this type1 font a PKfile next steps are needed: |
| 66 |
setenv T1INPUTS ../Utopia (C-shell) |
| 67 |
ps2pk -v -X300 Utopia-Regular.pfa (long) |
| 68 |
or: ps2pk -v Utopia-Regular.pfa (short using defaults) |
| 69 |
|
| 70 |
This will create the Utopia-Regular10.300pk font with the default |
| 71 |
AdobeStandard characters derived from ../Utopia/Utopia-Regular.afm. |
| 72 |
(The -v flag will show what the program is doing and which character |
| 73 |
codes are generated.) |
| 74 |
|
| 75 |
To see how for example the `Q' is rendered by ps2pk (using the IBM |
| 76 |
type1 rendering software) you can use: |
| 77 |
pk2bm -bcQ Utopia-Regular10.300pk |
| 78 |
|
| 79 |
MSDOS has problems with such long names as Utopia-Regular10.300pk. That |
| 80 |
is the reason that dvips uses abreviations for the PostScript names. The |
| 81 |
short name for TeX's virtual font needed to use Utopia-Regular is `putr'. |
| 82 |
The short name for its raw counterpart is `rputr'. To generate rputr.pk |
| 83 |
the equivalent of Utopia-Regular10.300pk in directory 300dpi you have to |
| 84 |
use (on MSDOS): |
| 85 |
ps2pk -v Utopia-Regular 300dpi\rputr.pk |
| 86 |
|
| 87 |
Ps2pk has some extra options. All options are explained in the manual page |
| 88 |
(man/ps2pk.1). Here are the most important: |
| 89 |
-X<xres> the desired X-resolution (ex: 300, 329, 360, 432, etc) |
| 90 |
-E<expansion> the factor to expand a font |
| 91 |
-S<slant> to get a slanted font. |
| 92 |
|
| 93 |
3) Using the ps2pk rendered fonts with xdvi. |
| 94 |
The main reason why ps2pk is written is to use the PK fonts for |
| 95 |
previewing a (La)TeX document that uses PostScript fonts. But some |
| 96 |
people use the PKfonts instead of the original type1 fonts that are |
| 97 |
available in the printer because they consume less virtual memory |
| 98 |
or because the printing goes faster. |
| 99 |
|
| 100 |
To use putr the TeX version of Utopia-Regular in xdvi you will need: |
| 101 |
- the latest version of xdvi (supporting virtual fonts) |
| 102 |
- putr.tfm and putr.vf (the virtual TeX-face of Utopia-Regular) |
| 103 |
- rputr.tfm and rputr.300pk (the raw TeX-face of Utopia-Regular) |
| 104 |
- testfont.tex (a plain TeX source to test the font). |
| 105 |
|
| 106 |
We have explained how to make rputr.300pk from Utopia-Regular. How do |
| 107 |
we generate rputr.tfm, putr.vf and putr.tfm? The first TFM file can be |
| 108 |
generated with afm2tfm, coming with dvips, in the following way: |
| 109 |
- afm2tfm Utopia/Utopia-Regular.afm -v putr.vpl rputr.tfm |
| 110 |
|
| 111 |
The TFM/VF files for putr can be generated from the virtual property |
| 112 |
list file (VPL) with vptovf: |
| 113 |
- vptovf putr.vpl putr.vf putr.tfm |
| 114 |
|
| 115 |
Now we have to verify that xdvi can find all these VF and PK fonts |
| 116 |
by adding the current directory to the PATH's used for locating them: |
| 117 |
- XDVIVFS (path for VF files) |
| 118 |
- XDVIFONTS (path for PK files) |
| 119 |
|
| 120 |
Now we are ready to test Utopia-Regular: |
| 121 |
- tex testfont |
| 122 |
|
| 123 |
If TeX asks for a font enter `putr' and when asked for a test |
| 124 |
enter `\bigtest\bye' and you will get a testfont.dvi file. |
| 125 |
(Testfont.tex is distributed with every TeX version.) |
| 126 |
|
| 127 |
- xdvi testfont |
| 128 |
|
| 129 |
If everything is OK you should see Utopia! |
| 130 |
|
| 131 |
(You can try another testfont with `rputr' instead of `putr'. Explain |
| 132 |
the differences!) |
| 133 |
|
| 134 |
4) Using Utopia-Regular with dvips. |
| 135 |
Before you can run dvips to generate the PostScript output that can |
| 136 |
be printed you have to make the font available to dvips by adding a |
| 137 |
line to psfonts.map (normally located in /usr/local/lib/tex/ps). |
| 138 |
This line tells dvips if a font is resident (available in the |
| 139 |
printer) and if not how to download it. For rputr we need to add |
| 140 |
next line in psfonts.map (the new version of afm2tfm will show this |
| 141 |
line on the standard output): |
| 142 |
rputr Utopia-Regular |
| 143 |
|
| 144 |
and to copy or to move Utopia-Regular to /usr/local/lib/tex/ps so |
| 145 |
that it will be downloaded (added to the PostScript output). |
| 146 |
dvips testfont |
| 147 |
|
| 148 |
If you have GhostScript, and your dvips is installed so that it does |
| 149 |
not send the output immediately to the printer, you can check |
| 150 |
testfont.ps behind your X-display with: |
| 151 |
gs testfont.ps |
| 152 |
|
| 153 |
5) Using rputr.300pk with dvips. |
| 154 |
You have to remove the line you have added to psfonts.map. Then |
| 155 |
dvips will try to find a PK-font instead of the type1 font. |
| 156 |
|
| 157 |
6) Automatic font generation with MakeTeXPK. |
| 158 |
|
| 159 |
If you are interested in automatically generating PK fonts from |
| 160 |
either METAFONT and/or type1 sources you may want to install the |
| 161 |
MTPK package. This package provides a perl script that allows |
| 162 |
DVI drivers to generate missing PK sizes in a platform independant |
| 163 |
way. See ftp.urc.tue.nl:pub/tex/MTPK??.gtz and the MTPK??.README |
| 164 |
file for more information (under development). |
| 165 |
|
| 166 |
7) Although ps2pk is set up for AdobeStandardEncoding, the default used |
| 167 |
by current versions of dvips, it will also accept other PostScript |
| 168 |
and TeX encodings. An interesting alternative for TeX users is the new |
| 169 |
TUG 8bits font standard (see: TUGboat #10 vol. 4 1990). This standard |
| 170 |
is a superset of ISOLatin1 with many accented characters. The PostScript |
| 171 |
encoding used by this new font is contained in etc/EC.enc. In order to |
| 172 |
use it you will need afm2tfm version 7.0 (distributed with dvips5485++). |
| 173 |
|
| 174 |
[Here you should read two danger bends!! Next in small letters . . . |
| 175 |
|
| 176 |
As an example how an encoding scheme other than Adobe Standard can |
| 177 |
be used we show how you can use the Utopia-Regular font as an |
| 178 |
extended Computer Modern font. We use this encoding scheme both on |
| 179 |
the TeX input side (let us call that internal encoding) and on the |
| 180 |
TeX output side (we will call that external encoding). It is clear |
| 181 |
that we can not use the plain macros that are still based on |
| 182 |
oldstyle 7bits internal encodings. But we can use NFSS-DC a new |
| 183 |
font selection scheme based on DC encodings. The DC encoding is a |
| 184 |
preliminar version of the EC encoding. |
| 185 |
|
| 186 |
How do we generate the appropriate TFM, VF and PK files? |
| 187 |
rputr.300pk: |
| 188 |
setenv T1INPUTS Utopia (C-shell) |
| 189 |
ps2pk -e etc/EC.enc Utopia-Regular rputr.300pk |
| 190 |
rputr.tfm and putr.vpl: |
| 191 |
afm2tfm Utopia/Utopia-Regular.afm -p etc/EC.enc -v putr.vpl rputr.tfm |
| 192 |
putr.vf putr.tfm: |
| 193 |
vptovf putr.vpl putr.vf putr.tfm |
| 194 |
|
| 195 |
How do we use it? |
| 196 |
psfonts.map (add line): |
| 197 |
rputr Utopia-Regular " ECEncoding ReEncodeFont " <EC.enc |
| 198 |
$TEXCONFIG: |
| 199 |
install here Utopia-Regular and EC.enc |
| 200 |
testfont.tex (tex-nfss-dc is a special plain TeX version): |
| 201 |
tex-nfss-dc testfont (choose `putr' and '\bigtest\bye') |
| 202 |
xdvi testfont |
| 203 |
dvips testfont. |
| 204 |
|
| 205 |
. . .End of dangerous stuff and the small letters] |
| 206 |
|
| 207 |
--Piet |
| 208 |
|