Re: [Matplotlib-users] TrueType font embedding in eps problem.

2008-01-18 Thread Michael Droettboom
I suspect an explicit conversion to str may be required on your configuration/platform. (I think you mentioned you were using Windows). Can you change line 592 of mathtext.py to read: font = FT2Font(str(basename)) and let me know if that fixes your problem? If so, I'll commit this to

Re: [Matplotlib-users] TrueType font embedding in eps problem.

2008-01-18 Thread Jordan Dawe
Michael Droettboom wrote: I suspect an explicit conversion to str may be required on your configuration/platform. (I think you mentioned you were using Windows). Indeed I am. Can you change line 592 of mathtext.py to read: font = FT2Font(str(basename)) and let me know if that fixes

Re: [Matplotlib-users] TrueType font embedding in eps problem.

2008-01-18 Thread Michael Droettboom
Jordan Dawe wrote: Michael Droettboom wrote: This is going to be a tricky one, particularly since I don't have access to Illustrator. All I know is the eps and pdf output of simple_plot.py looks fine for me in ghostscript, acroread, xpdf and evince. Even text select copy and paste works

Re: [Matplotlib-users] TrueType font embedding in eps problem.

2008-01-17 Thread Michael Droettboom
There was a change between 0.90 to 0.91 as to how the TrueType to Type 42 (which is essentially a thin wrapper around a TrueType font) conversion is done. In 0.90 it was done in Python -- in 0.91 when font subsetting was added, this conversion is done in some borrowed C code called ttconv.

Re: [Matplotlib-users] TrueType font embedding in eps problem.

2008-01-17 Thread Rob Hetland
There have been quite a few changes to fonts in MPL since 8.x. Perhaps one of the biggest is mathtext. Real unicode fonts with mathematics. Since you do what I do, sort of, I am guessing that you might be happy with the same configuration I use. I looks great, and can be edited in

Re: [Matplotlib-users] TrueType font embedding in eps problem.

2008-01-17 Thread Jordan Dawe
Rob Hetland wrote: I really like Arev Sans, but others like the new STIX fonts. This setup is for Arev Sans. The important stuff is what begins with mathtext. If you want serif fonts, this should be enough to get you started on customizing. Just make sure whatever fontset you pick has

[Matplotlib-users] TrueType font embedding in eps problem.

2008-01-16 Thread Jordan Dawe
Ok... I'm running python 2.5 on winxp. I recently upgraded from matplotlib 88ish to 91.1, and now the font embedding in eps files no longer works for me: all fonts end up as paths when I open an eps file in illustrator, and I can't do any font editing like I could before I upgraded. I found

Re: [Matplotlib-users] TrueType font embedding in eps problem.

2008-01-16 Thread Jordan Dawe
Setting ps.useafm = True while ps.fonttype = 42 allows illustrator to open the eps files again and gives me back text editing capability, but I don't have any control over the typeface anymore, it just defaults to Helvetica. Jordan