Stan West wrote: >> Stan West wrote: >> >>> While labeling axes with both standard and Unicode strings, I noticed some >>> alignment problems in EPS output, as in the attached examples. I traced it >>> to differences between RendererPS.draw_text and RendererPS.draw_unicode; the >>> latter was not accounting for any descenders in the glyphs. I've attached a >>> suggested patch which I believe brings the draw_unicode behavior into line >>> with the draw_text behavior for both AFM and TrueType fonts. The patch also >>> removes extraneous indents in multi-line PostScript strings that were >>> appearing in the EPS files. >>> >>> >> Thanks for the patch. I'm sure that was just overlooked when Unicode >> support was added to the Ps backend. >> >> This has been committed to SVN r6295. >> > > You're welcome. For my edification, are there stylistic or other reasons to > leave the spaces in the PostScript at lines 580, 636, and 704? > No. Just used to ignoring whitespace in diffs, since editors often do that kind of thing behind one's back. Certainly saves a few bytes in output to remove them. I'll do that.
Mike -- 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 the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel