From: John H. <jdh...@ac...> - 2004-09-29 21:17:55
|
>>>>> "Humufr" == Humufr <hu...@ya...> writes: Humufr> the different fonts available. I obtain: Humufr> ['Lucida Grande', 'Verdana', 'Geneva', 'Lucida', Humufr> 'Bitstream Vera Sans', 'Arial', 'Helvetica', 'sans-serif'] Humufr> but if I'm trying to use the font Arial and italic in the Humufr> script that give me this message: Could not match Humufr> sans-serif, italic, normal. Returning Humufr> /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf Humufr> It's seems that the change introduce in the script is not Humufr> use and that matplotlib are using only Vera fonts with no Humufr> style. Note that this list does not mean that these fonts are available on your system. They are simply the fonts that matplotlib will look for if you specify sans-serif. Humufr> fonts = { 'color' : 'k', 'fontname' : 'Courier', Humufr> 'fontweight' : 'bold', 'fontstyle' : 'italic', 'fontsize' Humufr> : 'xx-large' Humufr> } Humufr> ylabel('toto',fonts) Humufr> give me exactly the same things than: Humufr> fonts = { 'color' : 'k', 'fontname' : 'Arial, 'fontweight' Humufr> : 'bold', 'fontstyle' : 'italic', 'fontsize' : 'xx-large' Humufr> } Are you sure that you have Courier and Arial on your system and are they in your TTFPATH? If you are sure on both counts, it may help to remove your font cache (typically ~/.ttffont.cache on linux like systems) and let matplotlib regenerate it's cache. Those are my only ideas so far, let me know. JDH |