PS2PK(1) | General Commands Manual | PS2PK(1) |
ps2pk - creates a TeX pkfont from a type1 PostScript font
ps2pk [ -v ] [ -eenc ] [ -Xxres ] [ -Eexpansion ] [ -Sslant ] [ -Ppointsize ] [ -Rbaseres ] [ -raspectratio ] [ -Yyres ] [ -aAFMfile ] [ -mmodename ] type1 [pkfont]
This program renders a given type1 PostScript font at a given pointsize (default 10.0 points) and resolution (default 300dpi) into a TeX pkfont.
To generate the pkfont ps2pk needs a valid type1 font file (for example Utopia-Regular, Utopia-Regula.pfb or Utopia-Regula.pfa) and its corresponding AFM-file (Utopia-Regular.afm) with the font metrics. The program accepts both the binary type1 format (Utopia-Regula.pfb) and its ASCII equivalent (Utopia-Regular or Utopia-Regula.pfa). To locate the files, ps2pk uses the kpathsea library (see the info page on kpathsea). Additionally, pfb and pfa files are searched for in the directory specified in the environment variable T1INPUTS, and afm files are searched in AFMFONTS, if they are set (the -v flag will report which filenames are looked for).
The program will make a pkfont in which the character codes are derived from their AFM (Adobe Font Metrics) defined values. This can be overruled by specifying an explicit encoding file via the -e option. The encoding file enc should contain a valid PostScript encoding containing PostScript names like /hyphen. Here is an incomplete example (see afm2tfm for complete syntax):
% This is the EC encoding. /ECEncoding [ % now 256 chars follow % 0x00
/grave /acute /circumflex /tilde /dieresis /hungarumlaut
/ring /caron /breve /macron /dotaccent /cedilla
/ogonek /quotesinglbase /guilsinglleft /guilsinglright
(Rest of lines omitted.) % 0xF0
/eth /ntilde /ograve /oacute /ocircumflex /otilde
/odieresis /oe /oslash /ugrave /uacute /ucircumflex
/udieresis /yacute /thorn /germandbls ] def
Options and arguments:
The following PK "specials" provide an internal check on
the characteristics of the pkfont, in accordance with the recommendations of
the TeX Working Group on the TeX Directory Standard (TWG-TDS):
"fontid=FontName", "codingscheme=Encoding",
"fontfacebyte", "mag",
"mode=(ps2pk)modename", "pixels-per-inch", and
"aspect-ratio" if it is other than unity.
This program uses the Type1 hinting and rendering software IBM has donated to the X Consortium.
`METAFONT: The Program', Donald Knuth. `The GFtoPK processor', belonging to the METAFONTware. `Adobe Font Metric Files', Version 3.0, PostScript Developer Support Group. afm2tfm(1) pk2bm(1) kpsewhich(1) info kpathsea
1.4 (January 1994)
Piet Tutelaers, modified for ps2pkm by Pierre A. Mackay. This manpage was adapted to teTeX by Frank Kuester.
Maintained in TeX Live; please send bug reports or other correspondence to tex-k@tug.org (http://lists.tug.org/tex-k).
1 Feb 2016 |