[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#238627: ps2pk fails to generate font (and is outdated)



Thomas Esser <te@dbs.uni-hannover.de> schrieb:

>> Just exchanging AFMFONTS for T1INPUTS in the previous example doesn't
>> help. Also not after copying the file to
>
> I was talking about the afm file. ps2pk also needs to find the pfb file.
> If you can put these files into the right place of a texmf tree, you
> don't need to set any environment variable at all.

That's clear, but in this special case it seems the files were outside
(and in my testcase, too, of course)

> If you can't or don't want to do this, set T1FONTS for the pfb file and
> AFMFONTS for the afm file.

This should be documented in the manpage, I think. What about the
following patch:

--8<------------------------schnipp------------------------->8---
--- tetex-bin-CVS/texk/ps2pkm/ps2pk.1.orig	Sat Mar 20 13:57:58 2004
+++ tetex-bin-CVS/texk/ps2pkm/ps2pk.1	Sat Mar 20 14:08:43 2004
@@ -13,14 +13,16 @@
 This program renders a given type1 PostScript font at a given pointsize
 (default 10.0 points) and resolution (default 300dpi) into a TeX pkfont. 
 .PP
-To generate the pkfont pk2ps needs a valid type1 fontname (for example
-Utopia-Regular, Utopia-Regula.pfb or Utopia-Regula.pfa) and its
-corresponding AFM-file (Utopia-Regular.afm).  The program accepts both the
-MSDOS binary type1 format (Utopia-Regula.pfb) and its ASCII equivalent
-(Utopia-Regular or Utopia-Regula.pfa).  To locate the type1 font and its
-AFM-file ps2pk will use the environment T1INPUTS if it is set otherwise
-its built in default (the -v flag will report which filenames are looked
-for). 
+To generate the pkfont pk2ps 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).
 .PP
 The program will make a pkfont in which the character codes are derived
 from their AFM (Adobe Font Metrics) defined values.  This can be
@@ -136,9 +138,11 @@
 Support Group.
 afm2tfm(1)
 pk2bm(1)
+kpsewhich(1)
+info kpathsea
 
 .SH VERSION
-1.1 (May 1992)
+1.4 (January 1994)
 
 .SH AUTHOR
 .nf
@@ -147,3 +151,6 @@
 modified for ps2pkm 
 by Pierre A. Mackay
 mackay@cs.washington.edu
+
+This manpage was adapted to teTeX by Frank Kuester
+<frank@kuesterei.ch>
--8<------------------------schnapp------------------------->8---

Regards, Frank
-- 
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie




Reply to: