"Andrew Hawryluk" <hawr...@novachem.com> writes: > When I use Arial Unicode MS within matplotlib, it cannot save to any > PostScript-based formats (pdf, eps, ps). Apparently, the font has no > glyph names: [...] > glyph_name = font.get_glyph_name(gind) > RuntimeError: Face has no glyph names [...] > I know that these fonts can be included in PDFs, because I can do it > in other programs.
What version of Freetype do you have - does updating it help? The check for glyph names is just a call to a Freetype macro: if (!FT_HAS_GLYPH_NAMES(face)) throw Py::RuntimeError("Face has no glyph names"); Does it help if you set ps.fonttype and pdf.fonttype to 42 in matplotlibrc? If not, could you send me (off-list) a sample of a PDF file produced by another program using the font, preferably one that displays the exact same string that causes this problem with matplotlib? -- Jouni K. Seppänen http://www.iki.fi/jks ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel