Strange Build problem....
Steve Dickson
SteveD at redhat.com
Wed Jan 16 19:36:58 UTC 2013
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 at gmail.com>
Date: Wed Jan 16 13:59:10 2013 -0200
Use fontconfig by default (#885307)
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.
More information about the devel
mailing list