bug in font display using png backend

Hi all,

there is a problem in the font display in the newest trunk version of matplotlib (git rev. 76665d059523cf)

I ran a clean installation and the test script. You can see in the attachment that the fonts are somehow screwed up. It seems to depend on the graphics backend. In the screenshot, the title is broken. In the png output, only the axis labels are broken. In the pdf, everything looks fine.

It looks like this bug has been introduced after tag v1.1.0 (I switched back to the tag and the fonts look fine there).

If you want me to run further tests, please let me know.

Detlef

build.out (523 KB)

run.out (16 KB)

test.png

Screenshot.png

test.pdf (86.5 KB)

Git bisect shows that this was introduced in f57dddc20625. Looking
at the github comments for that commit:

https://github.com/matplotlib/matplotlib/commit/f57dddc20625809436956675d23b09baddcc9e0e

strange enough the problem and solution are already discussed, it

just seems the solution never made it in.

This should now be fixed in 48c31f7ff660

Mike
···

http://p.sf.net/sfu/Boundary-d2dvs2Matplotlib-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-devel

yep, it works. Thanks for fixing it so quickly!

···

On 23.04.2012 23:34, Michael Droettboom wrote:

Git bisect shows that this was introduced in f57dddc20625. Looking at
the github comments for that commit:

Do not assume < 8-bit images are 8-bit. · matplotlib/matplotlib@f57dddc · GitHub

strange enough the problem and solution are already discussed, it just
seems the solution never made it in.

This should now be fixed in 48c31f7ff660

Mike