Font problem on import of pylab


With matplotlib-0.91.2 as well as with the latest SVN version I get

hoel@...1850...:~> python -ic "from matplotlib import pylab"
Found an unknown keyword in AFM header (was MetricsSets)
Found an unknown keyword in AFM header (was IsBaseFont)
Found an unknown keyword in AFM header (was IsCIDFont)
Found an unknown keyword in AFM header (was StartDirection)
Found an unknown keyword in AFM header (was EndDirection)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python2.5/site-packages/matplotlib/", line 208, in <module>
    from matplotlib import mpl # pulls in most modules
  File "/usr/local/lib/python2.5/site-packages/matplotlib/", line 2, in <module>
    from matplotlib import axis
  File "/usr/local/lib/python2.5/site-packages/matplotlib/", line 14, in <module>
    from font_manager import FontProperties
  File "/usr/local/lib/python2.5/site-packages/matplotlib/", line 1132, in <module>
  File "/usr/local/lib/python2.5/site-packages/matplotlib/", line 1123, in _rebuild
    fontManager = FontManager()
  File "/usr/local/lib/python2.5/site-packages/matplotlib/", line 913, in __init__
    self.afmdict = createFontDict(self.afmfiles, fontext='afm')
  File "/usr/local/lib/python2.5/site-packages/matplotlib/", line 518, in createFontDict
    prop = afmFontProperty(font)
  File "/usr/local/lib/python2.5/site-packages/matplotlib/", line 417, in afmFontProperty
    name = font.get_familyname()
  File "/usr/local/lib/python2.5/site-packages/matplotlib/", line 440, in get_familyname
    return self._header['FamilyName']
KeyError: 'FamilyName'

import pdb


-> return self._header['FamilyName']
(Pdb) print self._header
{'Notice': 'Copyright (c) 1999 Adobe Systems Incorporated. All Rights Reserved.', 'Ascender': 883.0, 'FontBBox': [-36, -250, 986, 883], 'Weight': 'Bold', 'Descender': -250.0, 'CharacterSet': 'Adobe-Korea1-0', 'IsFixedPitch': False, 'FontName': 'MunhwaGothic-Bold', 'StartFontMetrics': 4.0999999999999996, 'CapHeight': 883.0, 'Version': '1.000', 'UnderlinePosition': -100, 'Characters': 2549, 'UnderlineThickness': 50, 'ItalicAngle': 0.0, 'StartCharMetrics': 2549}

The afm file seems to be

rpm -qfi /usr/share/ghostscript/Resource/AFM/MOEKai-Regular.afm
Name : CID-keyed-fonts-MOE Relocations: (not relocatable)
Version : 20021114 Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Release : 234 Build Date: So 26 Nov 2006 02:31:56 CET
Install Date: Di 02 Jan 2007 21:53:12 CET Build Host:
Group : Productivity/Publishing/PS Source RPM: CID-keyed-fonts-MOE-20021114-234.src.rpm
Size : 23618231 License: Contact author, Other License(s), see package
Signature : DSA/SHA1, So 26 Nov 2006 02:35:35 CET, Key ID a84edae89c800aca
Packager :
Summary : MOE CID-Keyed Fonts (for Traditional Chinese)
Description :
This package contains the CID-keyed fonts

MOESung-Regular (Adobe-CNS1-0 subset: 13699 CIDs)
MOEKai-Regular (Adobe-CNS1-0 subset: 13699 CIDs)

These fonts are useful for traditional Chinese--for Taiwan and
Hongkong. The fonts can be used with Ghostscript as well as with X11.



    Dr. Ken Lunde <lunde@...1851...>
Distribution: openSUSE 10.2 (i586)

But other Asian fonts seem to be affected as well. Is there a solution
besides removing the affected fonts?

A: Weil es die Lesbarkeit des Textes verschlechtert.
F: Warum ist TOFU so schlimm?
F: Was ist das größte Ärgernis im Usenet?