"Yuri Bendaña" <[EMAIL PROTECTED]>
writes:

> For example, the following doesn't work:
> figtext(0.8,0.3,"Large Folds", weight='bold', fontname='Helvetica')
> I only get the default font (I believe it's Vera) and no bold.  

Yes, I think that's a known bug. The font manager doesn't know how to
read the bold version of Helvetica from Helvetica.dfont. A workaround is
to run fondu (http://fondu.sourceforge.net/) on Helvetica.dfont, put the
resulting ttf files in some directory and use them directly:

In [20]: from matplotlib.font_manager import FontProperties
In [21]: fp=FontProperties(fname='/tmp/HelveticaBold.ttf',size=14)
In [22]: text(.1,.1,'this is bold',fontproperties=fp)

-- 
Jouni K. Seppänen
http://www.iki.fi/jks


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to