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".  That's just a guess as to what may be the specific 
cause.  I don't have a copy of Illustrator, so I haven't done any 
testing with that.  I'm happy to hear of a positive report from Rob. 
Perhaps you both (Rob and Jordan) are using different versions of 
Illustrator?

Note that ps.useafm essentially overrides the ps.fonttype setting.  If 
ps.useafm is True, you will always only get one of the 14 "builtin" 
Postscript fonts, which are not embedded in the file because all 
Postscript interpreters are required to support them.  If ps.useafm is 
False, then the other setting kicks in.  Type 42 essentially includes 
the whole Truetype font somewhat verbatim in the Ps file.  Type 3 will 
include only the used characters, using a format that is more native to 
Postscript.

All of them *should* be able to be editable on a purely theoretical 
level, though I would imagine Type 3 to be broken if you try to add a 
character that wasn't embedded in the file.  (This is different from how 
matplotlib does SVG font embedding where the original text really is 
lost).  But I don't really know what Illustrator's abilities and 
limitations are in that regard.

Hopefully Rob's suggestions will work for you.  Otherwise, I may want to 
revisit pulling the old Type 42 code back out of SVN to see if that 
solves your problem.  A good place to start might be if you could send 
me (off list) two eps files of the same plot -- one created with 0.90.1, 
and one with 0.91.2.

Cheers,
Mike

Rob Hetland wrote:
> 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 Illustrator (et al.).
> 
> 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  
> all of the math symbols built in, or change fallback_to_cm to True.
> 
> -Rob
> 
> 
> font.family         : sans-serif
> font.style          : normal
> font.variant        : normal
> font.weight         : medium
> font.stretch        : normal
> font.size           : 12.0
> font.serif          : STIX, Bitstream Vera Serif, New Century  
> Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman,  
> Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif
> font.sans-serif     : Arev Sans
> font.cursive        : Zapfino, Apple Chancery, Textile, Sand, cursive
> font.fantasy        : Chicago, Comic Sans MS, Charcoal, Impact,  
> Western, fantasy
> font.monospace      : Bitstream Vera Sans Mono, Andale Mono, Nimbus  
> Mono L, Courier New, Courier, Fixed, Terminal, monospace
> 
> 
> text.color          : black
> text.usetex         : False
> text.dvipnghack     : True
> 
> mathtext.fallback_to_cm : False
> mathtext.fontset : custom
> 
> mathtext.cal : Arev Sans:oblique
> mathtext.it  : Arev Sans:oblique
> mathtext.rm  : Arev Sans
> mathtext.bf  : Arev Sans:bold
> mathtext.sf  : Arev Sans
> 
> pdf.fonttype       : 42
> 
> 
> 
> 
> 
> On Jan 16, 2008, at 10:13 PM, Jordan Dawe wrote:
> 
>> 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
>>
>> ---------------------------------------------------------------------- 
>> ---
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> ----
> Rob Hetland, Associate Professor
> Dept. of Oceanography, Texas A&M University
> http://pong.tamu.edu/~rob
> phone: 979-458-0096, fax: 979-845-6331
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to