On Mon, Oct 24, 2011 at 2:47 PM, Rich Shepard <rshep...@appl-ecosys.com> wrote:
> Underline Position -100
> Underline Thickness 50

those two properties should not have spaces in them - according the
the AFM file spec that I could find - they should be one word - which
is what matplotlib expects - and this is the source of all of the
"'Found an unknown keyword in AFM header (was Underline)" warning that
you saw.

> C 127 ; WX 262 ; N  ; B 64 506 246 730 ;

I still find it strange that this character is even in the font file
- maybe it had a value other than just space, but copy pasting made it
appear as such? Please resend the file as an attachement so we can
verify.

In the meantime - this patch should get around trying to parse any
such files without causing tracebacks

in lib/matplotlib/afm.py, after the line that says 'if
line.startswith('Comment'): continue' add another line that says 'if
line.startswith('C 127'): continue'

>> What about the .afm that ships with matplotlib which also caused problems
>> - did you verify that the one you have is the same as the one under
>> version control in matplotlib?
>
>   Well, the source file came from the matplotlib Web site, so I assume that
> it/they are OK. The SlackBuild script essentially re-packages the download
> as a Slackware package so it can be managed more easily and consistently
> with other packages.

If this was really the case, we should not have been seeing "Found an
unknown keyword in AFM header (was Underline)" for the afm files that
ship with matplotlib (but we were on your machine - so something
changed them).

Please diff your pagko8a.afm against
https://raw.github.com/matplotlib/matplotlib/master/lib/matplotlib/mpl-data/fonts/afm/pagko8a.afm

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

Reply via email to