I'd say it's got nearly nothing to do with matplotlib.

The question is: will the font be included in the .ps and in the .pdf?

If not, which is most likely, it's upon the renderer to decide what to do if 
the requested glyph in the requested font is present or not in the system.

pdf is more likely to have the fonts / glyphs used also embeded in the pdf. One 
reason for them to be bigger than .ps. Ps, on the other hand, most of the times 
relys on the renderer to have the exact same font, referenced by name, 
pre-loaded in the system. Go figure.

To sum it up: use the old 7-bit equivalent for the degree sign, not any 
fancydancy UTF-8 character that is commonly not included in ye olde style 
postscript standard font embedded into your laser printer waaaay back then in 
the last millenium... 

Am 26.02.2013 um 21:26 schrieb Gökhan Sever:

> 
> 
> On Tue, Feb 26, 2013 at 8:29 AM, Pierre Haessig <pierre.haes...@crans.org> 
> wrote:
> Le 26/02/2013 14:38, Gökhan Sever a écrit :
>> 
>> Could you test my outputs if they look fine on your side?
>> 
>> http://atmos.uwyo.edu/~gsever/data/matplotlib/test.pdf
>> http://atmos.uwyo.edu/~gsever/data/matplotlib/test.ps
>> 
> Good idea ! 
> 
> * your PDF file looks fine with Okular
> * your PS indeed has the problem you describe (again Okular) :
>   - "°" (degree sign) is fine
>   - but "⁰" (zero superscript) is replaced by "?"
> 
> In case it may explain the difference : I'm using mpl 1.1.1rc2 from Debian 
> testing
> and I have the following line in my matplotlibrc (is it relevant ???)
> 
> font.sans-serif     : DejaVu Sans, sans-serif
> 
> Best,
> Pierre
> 
> My matplotlib is a git clone of a couple weeks old. 
> 
> There is this line in the PS file (opening via vim)
> 
> %%BeginResource: font KDYSTE+NewCenturySchlbk-Roman
> 
> don't know where it gets this.
> 
> #font.serif           : DejaVu Serif, 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     : DejaVu Sans, Bitstream Vera Sans, Lucida Grande, 
> Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif
> 
> PS uses that even I choose to use fot.sans-serif.
> 
> Dont see any font specification in the PDF file.
> 
>  
> 
> -- 
> Gökhan 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to