2013/1/16 Steve Dickson <SteveD@xxxxxxxxxx>: > On 16/01/13 12:27, Toshio Kuratomi wrote: >> Looking at the F17 version of matplotlib, the default afm font is being set >> to None there -- so a better fix (but requiring fixing in matplotlib) might >> be to patch it like this: >> >> >> --- /usr/lib64/python2.7/site-packages/matplotlib/font_manager.py 2012-12-04 21:32:42.000000000 -0500 >> +++ font_manager.py 2013-01-16 12:26:21.861202681 -0500 >> @@ -991,7 +991,10 @@ >> self.afmfiles = findSystemFonts(paths, fontext='afm') + \ >> findSystemFonts(fontext='afm') >> self.afmlist = createFontList(self.afmfiles, fontext='afm') >> - self.defaultFont['afm'] = self.afmfiles[0] >> + try: >> + self.defaultFont['afm'] = self.afmfiles[0] >> + except IndexError: >> + self.defaultFont['afm'] = None >> >> self.ttf_lookup_cache = {} >> self.afm_lookup_cache = {} > This does the trick! Thank you very much! > > It turns out this is the patch the caused the problem: > > commit eb9a122389b7ec7e33d9816fa669d7cb1f04521a > Author: pcpa <paulo.cesar.pereira.de.andrade@xxxxxxxxx> > Date: Wed Jan 16 13:59:10 2013 -0200 > > Use fontconfig by default (#885307) Sorry for that problem. It solved the problems I was having but created at least yours problem. I am having an almost live conversation right now about related issues at https://sourceforge.net/mailarchive/message.php?msg_id=30202451 right after posting the first test case result this was created: https://github.com/matplotlib/matplotlib/pull/1666 if possible, can you check if the above patch corrects your issue? archives of mailing list not yet updated, but I have made several runs of matplotlib test suite, with logs at: http://pcpa.fedorapeople.org/matplotlib-2.7+pull-1666.txt http://pcpa.fedorapeople.org/matplotlib-2.7-bundled-stix-ttf+fontconfig=false.txt http://pcpa.fedorapeople.org/matplotlib-2.7-mpl-data-with-bundled-stix-ttf.txt http://pcpa.fedorapeople.org/matplotlib-2.7.txt http://pcpa.fedorapeople.org/matplotlib-3.3.txt > CC-ing the author and created this bz: > https://bugzilla.redhat.com/show_bug.cgi?id=896182 > > Thanks again for you time and effort! It was definitely > appreciated!! > > steved. Thanks, Paulo -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel