Hi Michael,

is it 2010 already? Hmmm. Yeah, happy new year.

You mixed up the original version of lrm10.pfb in your post, it's:

  %/UniqueID 0 def
  /FontBBox{-430 -290 1417 1127}readonly def

and PyX removes the UniqueId (as it should) and accidentally comments out the 
FontBBox by that. Great, that you debugged the issue all the way down to this 
falsely comment character. Strange data in the original font, but your 
suggestion, adjusting the uniqueidpattern, is fine. Checked in as changeset 
3017.

Happy PyXing.


André


Am 06.01.2010 um 15:49 schrieb Michael SCHINDLER:

> Salut André and Jörg,
> 
> there seems to be a problem with latin-modern font inclusion in the
> current SVN trunk of PyX (Rev 3016). The following minimal script
> produces a pdf which is refused by our printer (Lexmark E450dn) with
> the error message
> 
>  PDF Error 8: PostScript Error: INVALIDFONT
> 
> I tried to create a similar file using pdflatex, and found a
> difference within the font "LMRoman10-Regular". PyX changed the lines
> 
>  \UniqueID 0 def
>  %/FontBBox{-430 -290 1417 1127}readonly def
> 
> into
> 
>  %/FontBBox{-430 -290 1417 1127}readonly def
> 
> 
> the pb can be cured by changing the definition of uniqueidpattern in
> the file pyx/font/t1file.py to include the percent symbol, but I do
> not know whether this is the right thing to do. Please have a look at
> it...
> 
> uniqueidpattern = re.compile("%?/UniqueID\s+\d+\s+def\s+")
> 
> Best greetings from Paris, and a happy new year!
>  Michael
> 
> 
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> _______________________________________________
> PyX-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyx-devel

-- 
by  _ _      _    Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim
   / \ \    / )   [email protected], http://www.wobsta.de/
  / _ \ \/\/ /    PyX - High quality PostScript and PDF figures
 (_/ \_)_/\_/     with Python & TeX: visit http://pyx.sourceforge.net/

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
PyX-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-devel

Reply via email to