[NTG-pdftex] [ pdftex-Bugs-262 ] Type42 inclusion

noreply at sarovar.org noreply at sarovar.org
Fri Jan 21 23:13:43 CET 2005

Bugs item #262, was opened at 2005-01-21 10:44
You can respond by visiting: 

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: Type42 inclusion

Initial Comment:

Trying to get ttf fonts working both with dvips and
pdflatex I experimented with converting the ttf to
Type42 using fontforge, disassembling it via t1disasm
and creating a pfb with t1asm. The resulting pfb is
included via dvips and both ghostscript and distiller
can interpret it.
Unfortunately, pdflatex gives me the following error
trying to include the pfb: 
Error: pdftex (file FranklinGothic-Medium.pfb):
unexpected end of file
 ==> Fatal error occurred, the output PDF file is not



>Comment By: Hartmut Henkel (hhenkel)
Date: 2005-01-21 23:13

Logged In: YES 

>From inspection of disassembled font
FranklinGothic-Medium.pfb it seems that this Type 42 font is
incompatible with writet1.c.Maybe handling Type 42 fonts is
not implemented in general?

The problem is, that after scanning of the /Encoding array
the function t1_subset_ascii_part() is waiting for the
string "currentfile eexec" while running the {...} while
(t1_in_eexec == 0); loop.  But in the Type 42 font there
follows the /sfnts key and the Type 42 program is scanned.
Then, as t1_in_eexec will never be changed, the while loop
runs into the end of the font file, resulting in the error.

Looks like it would require quite some change in writet1.c
to handle these Type 42 fonts. Would such a change make
sense, given that this type of font appears rather seldomly?

I also wonder how it should work in dvips, as it uses the
same writet1.c, and here also the same error message appears.

Also dvipdfm can't process the font, it just hangs.

All on teTeX-2.99.9 debian woody i686.

Regards, Hartmut


Comment By: Michael Zedler (zedler)
Date: 2005-01-21 15:57

Logged In: YES 

You may find the pfb, tfm, vf at

I suppose the error is due to pdftex trying to subset the
Type42 font. 



Comment By: Martin Schröder (oneiros)
Date: 2005-01-21 10:58

Logged In: YES 

Please include some test files; at least the pfb is needed.
Also please login when commenting on this or any other bug.


You can respond by visiting: 

More information about the ntg-pdftex mailing list