On Tue, Oct 25, 2011 at 4:59 PM, Rich Shepard <rshep...@appl-ecosys.com> wrote: > On Tue, 25 Oct 2011, Paul Ivanov wrote: > >> I see you sent this just a few minutes ago - let's try to figure this out >> interactively via IRC on #matplotlib channel on freenode. If you don't >> have an IRC client handy, you can just use this web-based one. >> http://webchat.freenode.net/?channels=matplotlib > > Paul, et al.: > > Changing "underline " to "underline" fixed the problem. Now I have some > legacy database connection issues since pysqlite3 is now included with > python. Ergo, no more matplotlib complaints! (I suppose that removing the > kidsd.* font had nothing to do with it, but I don't use that font in any > case.)
Awesome! glad we finally got to the bottom of it. For the record - in case others start seeing this error: "Found an unknown keyword in AFM header (was Underline)", when the afm file in question splits up the UnderlinePosition to be two words with a space between them, here's the patch to fix that problem. diff --git a/lib/matplotlib/afm.py b/lib/matplotlib/afm.py index bb51634..127e63d 100644 --- a/lib/matplotlib/afm.py +++ b/lib/matplotlib/afm.py @@ -132,6 +132,7 @@ def _parse_header(fh): line = fh.readline() if not line: break line = line.rstrip() + line = line.replace("Underline ", "Underline") if line.startswith('Comment'): continue lst = line.split( ' ', 1 ) #print '%-s\t%-d line :: %-s' % ( fh.name, len(lst), line ) I won't commit this to trunk, because it doesn't seem like anyone else has run into this before - so maybe there are very few afm files out there using this *incorrect*, as far as I can ascertain, version of the AFM headers best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users