On 6/9/07, James G. Sack (jim) <[EMAIL PROTECTED]> wrote:
Bob La Quey wrote:
>..
> The problem seems to be that the fonts are somehow
> not properly installed in file called psfonts.map
>
running
grep cmr var/lib/texmf/fonts/map/dvips/udpmap/psfonts.map
gives 8 lines, all ending with ".pfb"
(grep tmf gives nothing -- is that an error?)
On my box
[EMAIL PROTECTED]:~$ grep cmr /var/lib/texmf/fonts/map/dvips/updmap/
[EMAIL PROTECTED]:~$
i.e. nada for cmr.
I also installed python-pyx successfully, and determined that pydoc pyx
gives the pythonic manpage.
This seems to work fine for me.
But the simple pyx program below fails, complaining
about cmr10 ...
================================
from pyx import *
#text.set(mode="latex")
#text.preamble(r"\usepackage{mathptmx}")
c = canvas.canvas()
c.text(0, 0, "Hello, world!")
c.stroke(path.line(0, 0, 2, 0))
c.writeEPSfile("hello")
c.writePDFfile("hello")
================================
[EMAIL PROTECTED]:~/Python/Python/pyx$ python hello_pyx.py
Traceback (most recent call last):
File "hello_pyx.py", line 9, in ?
c.text(0, 0, "Hello, world!")
File "/usr/lib/python2.4/site-packages/pyx/canvas.py", line 267, in text
return self.insert(self.texrunner.text(x, y, atext, *args, **kwargs))
File "/usr/lib/python2.4/site-packages/pyx/text.py", line 1164, in text
box.setdvicanvas(self.dvifile.readpage([ord("P"), ord("y"),
ord("X"), self.page, 0, 0, 0, 0, 0, 0]))
File "/usr/lib/python2.4/site-packages/pyx/dvifile.py", line 1321, in readpage
afile.read(afile.readuchar()+afile.readuchar()))
File "/usr/lib/python2.4/site-packages/pyx/dvifile.py", line 953, in
definefont
font = type1font(fontname, c, q/self.tfmconv, d/self.tfmconv,
self.tfmconv, self.conv, self.fontmap, self.debug > 1)
File "/usr/lib/python2.4/site-packages/pyx/dvifile.py", line 687, in __init__
raise RuntimeError("no information for font '%s' found in font
mapping file, aborting" % name)
RuntimeError: no information for font 'cmr10' found in font mapping
file, aborting
[EMAIL PROTECTED]:~/Python/Python/pyx$
I conclude that cmr10 is _not_ in psfonts.map.
I look (with vi) at the psfonts.map and cmr10 is _not_
in it.
How do I get cmr10 into psfonts.map.
Note
[EMAIL PROTECTED]:~/Python/Python/pyx$ locate cmr10
/usr/share/matplotlib/cmr10.afm
/usr/share/matplotlib/cmr10.ttf
/usr/share/texmf-tetex/fonts/type1/public/cmr/cmr10.pfb
BobLQ
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list