Hi,
currently, PS backend does not work well with some fonts. For
instance, it displays a dotted square instead of whitespace with
Arial, and some strange dots instead of whitespace with Times New
Roman. This patch fixes it by omitting glyphs named ".notdef" from PS
output.
diff -urN matplotlib-0.90.0-orig/lib/matplotlib/backends/backend_ps.py matplotlib-0.90.0/lib/matplotlib/backends/backend_ps.py
--- matplotlib-0.90.0-orig/lib/matplotlib/backends/backend_ps.py 2006-12-20 08:39:20.000000000 +0300
+++ matplotlib-0.90.0/lib/matplotlib/backends/backend_ps.py 2007-02-14 16:32:06.000000000 +0300
@@ -776,7 +776,8 @@
lastgind = gind
thisx += kern/64.0
- lines.append('%f %f m /%s glyphshow'%(thisx, thisy, name))
+ if name != '.notdef':
+ lines.append('%f %f m /%s glyphshow'%(thisx, thisy, name))
thisx += glyph.linearHoriAdvance/65536.0
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel