|
From: Jouni K. S. <jk...@ik...> - 2009-04-06 19:20:45
|
"Andrew Hawryluk" <HA...@no...> 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
|