hello all,

it seems to be a classical problem, similar discussed allready, but the 
solutions I found didn't work here so far. I am using a Mac (OS X 
10.3.9) and it seems pyx doens't talk with latex fonds.
(I had similar problems when running pyx on my (sorry) windows-computer, 
but there I could managed it)

with the 'hello.py' example I get

Traceback (most recent call last):
   File "/Users/Merkl/PyX-0.9/hello.py", line 4, in <module>
     c.text(0, 0, "Hello, world!")
   File "/Users/Merkl/PyX-0.9/pyx/canvas.py", line 308, in text
     return self.insert(self.texrunner.text(x, y, atext, *args, **kwargs))
   File "/Users/Merkl/PyX-0.9/pyx/text.py", line 1197, in text
     self.execute(expr, self.defaulttexmessagesdefaultrun + 
self.texmessagesdefaultrun + texmessages)
   File "/Users/Merkl/PyX-0.9/pyx/text.py", line 897, in execute
     self.fontmap = dvifile.readfontmap(self.fontmaps.split())
   File "/Users/Merkl/PyX-0.9/pyx/dvifile.py", line 386, in readfontmap
     raise RuntimeError("cannot find font mapping file '%s'" % filename)
RuntimeError: cannot find font mapping file 'psfonts.map'

using
text.set(fontmaps="psfonts.cmz")

and

text.set(fontmaps="psfonts.map psfonts.cmz psfonts.amz")
as suggested gives

  raise RuntimeError("cannot find font mapping file '%s'" % filename)
RuntimeError: cannot find font mapping file 'psfonts.cmz'

and, respectivly

raise RuntimeError("cannot find font mapping file '%s'" % filename)
RuntimeError: cannot find font mapping file 'psfonts.map'

On the other hand, i get using kpsewhich

orca:~ Merkl$ kpsewhich cmr10.pfb
/usr/local/teTeX/share/texmf.tetex/fonts/type1/bluesky/cm/cmr10.pfb
orca:~ Merkl$ kpsewhich psfonts.map
/usr/local/teTeX/share/texmf.local/fonts/map/dvips/updmap/psfonts.map

In the email-archiv I found

 >I attach a testfile. Please run it and send the output back to me. The
 >scripts tests, under which "format" your TeX installation tries to
 >find "psfonts.map"

from pyx import pykpathsea

allformats = [
     pykpathsea.kpse_gf_format,
     pykpathsea.kpse_pk_format,
     pykpathsea.kpse_any_glyph_format,
     pykpathsea.kpse_tfm_format,
     pykpathsea.kpse_afm_format,
     pykpathsea.kpse_base_format,
     pykpathsea.kpse_bib_format,
     pykpathsea.kpse_bst_format,
     pykpathsea.kpse_cnf_format,
     pykpathsea.kpse_db_format,
     pykpathsea.kpse_fmt_format,
     pykpathsea.kpse_fontmap_format,
     pykpathsea.kpse_mem_format,
     pykpathsea.kpse_mf_format,
     pykpathsea.kpse_mfpool_format,
     pykpathsea.kpse_mft_format,
     pykpathsea.kpse_mp_format,
     pykpathsea.kpse_mppool_format,
     pykpathsea.kpse_mpsupport_format,
     pykpathsea.kpse_ocp_format,
     pykpathsea.kpse_ofm_format,
     pykpathsea.kpse_opl_format,
     pykpathsea.kpse_otp_format,
     pykpathsea.kpse_ovf_format,
     pykpathsea.kpse_ovp_format,
     pykpathsea.kpse_pict_format,
     pykpathsea.kpse_tex_format,
     pykpathsea.kpse_texdoc_format,
     pykpathsea.kpse_texpool_format,
     pykpathsea.kpse_texsource_format,
     pykpathsea.kpse_tex_ps_header_format,
     pykpathsea.kpse_troff_font_format,
     pykpathsea.kpse_type1_format,
     pykpathsea.kpse_vf_format,
     pykpathsea.kpse_dvips_config_format,
     pykpathsea.kpse_ist_format,
     pykpathsea.kpse_truetype_format,
     pykpathsea.kpse_type42_format,
     pykpathsea.kpse_web2c_format,
     pykpathsea.kpse_program_text_format,
     pykpathsea.kpse_program_binary_format,
     pykpathsea.kpse_miscfonts_format,
     pykpathsea.kpse_web_format,
     pykpathsea.kpse_cweb_format]

filename = "psfonts.map"
for format in allformats:
     mappath = pykpathsea.find_file(filename, format)
     if mappath:
         print "\"%24s\": %s" % (format, mappath)
     else:
         print "\"%24s\": ----" % format


which runs without finding something.
pyx is running just out of the box without installation.

any ideas how to solve the problem?

gruesse Michael

-- 
-----------------------------------------------------------------
Michael Merkl               *               mailto:[EMAIL PROTECTED]
Quantum Optics and Cold Atoms group       David Brewster building
Heriot-Watt University (Departement of Physics EPS)     room 1.27
EH14 4AS Edinburgh UK           *     phone.: +44-(0)131-451-3794
-----------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to