2011/8/15 Michael Droettboom <md...@stsci.edu>:
> On 08/14/2011 11:28 AM, Vlastimil Brom wrote:
>> ...
>> Is there maybe some mechanism available in matplotlib, which would
>> select the appropriate font for the given characters? (Like in wx or,
>> even more powerful in tk?) Or is it the expected way to set the
>> suitable font individually, as only the font list in rcParams are
>> tried sequentially - regardless of the character support?
> That's correct: matplotlib doesn't currently do this.  It renders a
> particular string of text with a single font and does not do font
> substitution for characters that are not in that font.  The best
> practice is to use a font that contains the full set of characters, such
> as Arial or Deja Vu as you've discovered.
>
> There a lot of other i18n shortcomings to the way matplotlib supports
> text (such as a lack of bidi support).  That's a large wheel to
> reinvent, so the solution would involve using a third-party text layout
> library such as pango, but I know there is licensing friction against
> that.  It may be worth revisiting that at some point.
>
> Mike
>
>
Thanks for the confirmation, I'll stick with this apporoach, as I
didn't manage to fix the code for wx backend on the newest version
(cf. above). Given the status of the non-Agg backends it might be more
appropriate.

Regards,
   vbr

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to