From: John H. <jdh...@ac...> - 2004-04-28 02:35:00
|
>>>>> "Darren" == Darren Dale <dd...@co...> writes: Darren> Hi All, interactive2.py, with GTK backend, is continually Darren> returning: 'Warning **: Couldnt load font "Tahoma Italic Darren> 8" falling back to "Sans Italic 8" Basically you are experiencing a win32 GTK font bug. If GTKAgg is a possibility for you, I encourage you to use it. You can do an end-run around GTK's font handling with GTKAgg. Unfortunately, we do not have the resources to manage every backend across every platform. gtk, tk, wx, gd, ps, agg cross win32, osx, linux, solaris equals 24 possible environments; multiply this by different versions of python/gd/tk/gtk/wx and the problem gets worse. Thus I encourage you and everyone to switch to TkAgg, GTKAgg or WXAgg where possible. Not only will you get the highest quality and probably fastest rendering, you'll get the latest features and the best support. The other platforms are still supported, but not as aggressively.... Darren> I found this line in interactive2.py: Darren> self.style_err.set_property( "style", pango.STYLE_ITALIC ) Darren> and checked GTK/etc/pango/pango.aliases. There is no Darren> mention of Tahoma fonts in this file. Darren> Any suggestions? The fact that it is not mentioned in your pango.aliases file is essentially the problem. When GTK tries to load a font it can't find it goes to this file to look for an alias. Try mapping it to a known good font on your system, as described in http://matplotlib.sf.net/faq.html#WINFONTS. The fact that you are using interactive2.py means you need an interactive shell. If you want interactivity from the python shell on win32, I recommend TkAgg if it is a possibility for you. Noting else comes close for interactive use from the standard python shell, particularly if you set tk.window_focus : True in your .matplotlibrc. Let me know what you are trying to do, and I can give more targeted and appropriate advice.... JDH |