From: Gary P. <pa...@in...> - 2004-01-10 16:28:43
|
Hello, Andre [...] > > C:\Python23\Lib\site-packages\pyx\examples>python hello.py > > > > Error: module writet1 (file C:/tex/texmf/fonts/type1/bluesky/cm/cmr10.pfb): > > unex > > pected end of file > > ==> Fatal error occurred, the output PDF file is not finished! > > > > helloworld.pdf is perfect. [...] > 1. Can you try to look into the helloworld.log from the pdftex run and > see, if there are path names in it? Just to make sure, that you are > using this same pfb font in pdftex and in PyX). I know, they really > should be the same, but lets check this first. > No additional info there. > 2. Can you try my new pfbtopfa converter to read the cmr10.pfb on your > system? Just fetch the latest CVS and step into the directory > pyx/t1strip (you may have to wait some hours until it becomes > available for anonymous checkout). Then try the following: > > andre@pb:~/python/pyx/pyx/t1strip$ python > Python 2.3 (#1, Sep 13 2003, 00:49:11) > [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> from fullfont import fullfont > >>> fullfont(open("cmr10.pfa", "w"), "/sw/share/texmf/fonts/type1/bluesky/cm/cmr10.pfb") This works perfectly > > If this works, my guess is, that you're opening the pfb in ascii > instead of binary mode in writet1.c. How do we try to fix it? I took a quick look at stript1.c, but I don't speak c very well ... Did I mention that I'm using the Mingw compiler? (FWIW) -gary |