| 1 |
This ps2pk program (all versions) is available under the same |
| 2 |
permissive license as the Type 1 interpreter code that it is based on |
| 3 |
(and incorporates). For the exact wording, see, for example, the type1.c |
| 4 |
source file. |
| 5 |
--Piet Tutelaers and Pierre MacKay, May 2011. |
| 6 |
|
| 7 |
ps2pk is currently maintained as part of TeX Live (http://tug.org/texlive), |
| 8 |
and distributed through TL and CTAN. |
| 9 |
|
| 10 |
Ps2pk-1.4 available |
| 11 |
------------------- |
| 12 |
(January 1994) |
| 13 |
|
| 14 |
Version 1.4 of ps2pk is now available on: |
| 15 |
ftp.urc.tue.nl (address: 131.155.2.79) |
| 16 |
directory: /pub/tex |
| 17 |
files: ps2pk14.README ( 9k) This file |
| 18 |
ps2pk14.tar.gz (237k) Sources |
| 19 |
|
| 20 |
For MSDOS people having difficulties in handling UNIX `.tar.gz' |
| 21 |
format I have made some UNIX tools (only executables) available |
| 22 |
in directories: |
| 23 |
/pub/unixtools/dos |
| 24 |
|
| 25 |
See the system specific TARGZ file for some help. |
| 26 |
|
| 27 |
Ftp.urc.tue.nl can not handle E-mail requests. But sites are free |
| 28 |
to put the ps2pk14 stuff on any server that can. |
| 29 |
|
| 30 |
I have made read-to-go 1.4 executables for MSDOS available in: |
| 31 |
pub/tex/ps2pk14x/msdos/djgpp (created with DJGPP/gcc) |
| 32 |
msdos/emx (created with EMX/gcc) |
| 33 |
|
| 34 |
When do you need ps2pk? |
| 35 |
---------------------- |
| 36 |
Ps2pk is a tool that converts a PostScript type1 font into a corres- |
| 37 |
ponding TeX PK font. The tool is especially interesting if you want |
| 38 |
to use fully hinted type1 fonts in your DVI previewer (instead of the |
| 39 |
unhinted type1 fonts currently used in GhostScript) or on a printer |
| 40 |
that has no PostScript interpreter. |
| 41 |
|
| 42 |
In order to use the ps2pk generated fonts your driver and previewer need |
| 43 |
to support virtual fonts. The reason is that PostScript fonts and TeX |
| 44 |
fonts do have a different font encoding and handle ligatures in a |
| 45 |
different way. With virtual fonts the PostScript world (encoding + |
| 46 |
ligatures) can be mapped to the old style TeX world on which the current |
| 47 |
plain macro packages still are based (despite the fact that TeX3.0 can |
| 48 |
handle 8bits). |
| 49 |
|
| 50 |
It is also possible to use the ps2pk generated PK fonts directly |
| 51 |
(without virtual fonts) but in that case you need modified plain TeX |
| 52 |
macros in order to acces the new (changed) font features. To make TeX |
| 53 |
really 8bits (the reason TeX3.0 was released) TUG has proposed a new |
| 54 |
font standard supporting the full 8bit range (in stead of the 7bit). |
| 55 |
The 128 extra characters in this new TUG standard are filled up with |
| 56 |
characters for 17 different European languages (see: TUGboat #10 vol. |
| 57 |
4 1990). With ps2pk it is possible to generate PK fonts from |
| 58 |
PostScript fonts according to this new TUG font standard. |
| 59 |
|
| 60 |
Ps2pk and virtual fonts. |
| 61 |
------------------------ |
| 62 |
In order to use ps2pk in combination with virtal fonts you need afm2tfm |
| 63 |
(the version belonging to dvips5.487 or newer), dvips and a previewer |
| 64 |
supporting virtual fonts (ex.: xdvi on UNIX). |
| 65 |
|
| 66 |
PS: the latest version of dvips can be retrieved from |
| 67 |
labrea.stanford.edu:pub and xdvi from export.lcs.mit.edu:contrib |
| 68 |
|
| 69 |
Ps2pk without virtual fonts. |
| 70 |
---------------------------- |
| 71 |
This road in not a paved one even for experienced TeX users! So be |
| 72 |
prepared that you need to build some bridges and other improvements to |
| 73 |
reach your goal. Or simply wait until the TeX community has switched to |
| 74 |
the new TUG font standard. |
| 75 |
|
| 76 |
Dvips (5.487 and higher) supports different TeX and PostScript |
| 77 |
encodings. If you choose for the new TUG fontstandard defined in the |
| 78 |
Cork meeting, as the TeX and PostScript encoding, you have to: |
| 79 |
- generate a set of TFM/VF fonts for the `EC' (Extended Computer |
| 80 |
Modern Font encoding) using afm2tfm and vptovf, |
| 81 |
- install the new encoding vector EC.enc so it will also be used for |
| 82 |
the resident/downloaded PostScript fonts |
| 83 |
- install a modified version of NFSS (New Font Selection Scheme) using |
| 84 |
this encoding scheme. |
| 85 |
|
| 86 |
Type1 PostScript text fonts. |
| 87 |
---------------------------- |
| 88 |
Fully hinted type1 fonts are generally not PD. You have to buy them |
| 89 |
unless you are satisfied with the PD available GhostScript versions |
| 90 |
(which are currently not hinted). You don't need to be an expert to |
| 91 |
see the difference between hinted and unhinted fonts. If you are |
| 92 |
using MSDOS or MacIntosh computers you probably use Adobe Type Manager |
| 93 |
(ATM) a program that can render type1 fonts dynamically. With this |
| 94 |
program or with other programs using ATM (for example Lotus) you |
| 95 |
receive fully hinted type1 fonts. On MSDOS they have funny names like |
| 96 |
tmr______.pfb. To save space on MSDOS type1 fonts are binary encoded |
| 97 |
(.pfb). On UNIX you can use this .pfb format too or the .pfa format |
| 98 |
(which occupies about double the space of a .pfb format). |
| 99 |
|
| 100 |
If your UNIX workstation supports DPS (Display PostScript) than |
| 101 |
you already may have a number of fully hinted type1 fonts. Look in |
| 102 |
places like /usr/lib/dps. |
| 103 |
|
| 104 |
If you are satisfied with PK fonts derived from unhinted type1 |
| 105 |
fonts just for previewing then you can ftp (thanks to Karl Berry): |
| 106 |
ftp.cs.umb.edu (file: pub/tex/psfonts.tar). |
| 107 |
|
| 108 |
This set contains PK files for the standard 35 PostScript fonts in |
| 109 |
various sizes, generated by `gsrenderfont' in the GNU font utilities |
| 110 |
(on prep.ai.mit.edu et al.). |
| 111 |
|
| 112 |
Adobe has donated their Utopia font family to the X-consortium and IBM |
| 113 |
their Courier font. Both families are available on ftp.urc.tue.nl. The |
| 114 |
Courier font from IBM does have a rich set of accented characters not |
| 115 |
found in other Adobe fonts. Both fonts are fully hinted. |
| 116 |
|
| 117 |
Lee Hetherington has written a set of type1 conversion utilities. These |
| 118 |
allow to convert from binary (PFB) to ASCII (PFA) and back. Or to |
| 119 |
convert a type1 font into readable PostScript (disassemble) with the |
| 120 |
possibility to edit it and to convert it back (assemble) to some type1 |
| 121 |
encoded form. They are now maintained by Eddie Kohler and available at |
| 122 |
http://www.lcdf.org/type (and as part of TeX Live). |
| 123 |
|
| 124 |
Type1 PostScript math fonts. |
| 125 |
---------------------------- |
| 126 |
The PostScript type1 symbol fonts do not have the same rich set of math |
| 127 |
symbols as the TeX fonts. There are two exceptions: the Lucida fonts |
| 128 |
and the MathTime package. I have no experience with the Lucida fonts. |
| 129 |
The MathTime package from Michael Spivak has the disadvantage that it is |
| 130 |
too much MacIntosh/AMSTeX oriented. There are people who are working on |
| 131 |
LaTeX support based upon NFSS. Another disadvantage of MathTime is that |
| 132 |
it is built on top of TimesRoman-Italic (not delivered with the package) |
| 133 |
and lacks bold-italic symbols. |
| 134 |
|
| 135 |
Acknowledgements. |
| 136 |
----------------- |
| 137 |
Ps2pk uses the type1 rendering software IBM has donated to the |
| 138 |
X-consortium. This rendering package is used by ps2pk as pure as |
| 139 |
possible. But in order to support user specified encoding schemes, to |
| 140 |
generate extended and/or slanted font variations, to uncouple it from the |
| 141 |
X protocol and to fix some bugs I needed to change some of the sources. |
| 142 |
|
| 143 |
I also want to thank the `ps2pk discussion forum' who helped me to make |
| 144 |
ps2pk as it is now. Especially Tom Rokicki for enhancing his dvips/afm2tfm. |
| 145 |
|
| 146 |
I wish you a lot of fun with type1 fonts, |
| 147 |
|
| 148 |
--Piet |
| 149 |
|
| 150 |
Piet Tutelaers |
| 151 |
Computer Center Room RC 1.90 |
| 152 |
Eindhoven University of Technology |
| 153 |
P.O. Box 513, 5600 MB Eindhoven, NL |
| 154 |
|
| 155 |
|
| 156 |
For those who have used earlier versions of ps2pk next differences may be |
| 157 |
of interest (only major differences are mentioned): |
| 158 |
|
| 159 |
Ps2pk 1.4 release (94-01) |
| 160 |
------------------------- |
| 161 |
1) Memory allocation made dynamically |
| 162 |
1.1 in computing runlengths (needed to build PK fonts) |
| 163 |
1.2 in scanning type1 fonts (to overcome `fixed' virtual memory) |
| 164 |
2) Problem with handling Lucida font (negative widths) solved |
| 165 |
3) Improved error handling in scanning AFM files |
| 166 |
4) Provided hooks to handle non 32-bit platforms |
| 167 |
5) Some cleanups |
| 168 |
6) Improved Makefiles. |
| 169 |
|
| 170 |
Ps2pk 1.3 release (92-09) |
| 171 |
------------------------- |
| 172 |
1) Official X11R5 patches included in type1 library. |
| 173 |
2) The -a<AFMfile> option added to ps2pk. |
| 174 |
3) Problem with rendering of Obique fonts solved. |
| 175 |
|
| 176 |
Ps2pk 1.2 release (92-06) |
| 177 |
------------------------- |
| 178 |
1) Ps2pk now computes the same checksum as afm2tfm (dvips5.487 or |
| 179 |
higher). This means that you have to update your VF and TFM files |
| 180 |
with the new dvips5487lib files. |
| 181 |
2) Bug fixes: |
| 182 |
- the MSDOS version now correctly reads PFB font files |
| 183 |
- a segmentation fault error removed (capri.pfa font) |
| 184 |
- an out of memory problem fixed (davysrib.pfa font) |
| 185 |
3) Added Makefile for MSDOS/DJGPP (Delorie's GCC for 386 systems) |
| 186 |
|
| 187 |
Ps2pk 1.1 release (92-04) |
| 188 |
------------------------- |
| 189 |
1) Ps2pk uses now the same encoding scheme as introduced by afm2tfm 7.0 |
| 190 |
(dvips5485). But default (for all English/American writing TeX-friends) |
| 191 |
the program uses the same encoding as is in the AFM-file belonging to |
| 192 |
the type1 PostScript font (normally AdobeStandard). So the program does |
| 193 |
not longer need re-encode to create a .cmi file containing the encoding |
| 194 |
vector and the WX values. These are read directly from the AFM file. |
| 195 |
|
| 196 |
Typical usage for standard encoding: |
| 197 |
ps2pk -X329 Utopia-Regular rputr.329pk |
| 198 |
|
| 199 |
or with EC.enc encoding: |
| 200 |
ps2pk -eEC.enc -X329 Utopia-Regular rputr.329pk |
| 201 |
|
| 202 |
2) I have added a -E<expansion> and -S<slant> option to ps2pk thanks to |
| 203 |
the patches I got from Lee Hetherington. |
| 204 |
|
| 205 |
3) I have added a MakeTeXPK script so that dvips and xdvi can use it. |
| 206 |
|
| 207 |
4) I have added manual pages and some documentation (README + INSTALLATION). |
| 208 |
|
| 209 |
5) Some inconveniences for MSDOS users are removed. |
| 210 |
|
| 211 |
Ps2pk 1.0 release (92-03) |
| 212 |
------------------------- |