Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37900141
en ru br
ALT Linux repos
5.0: 0.98.3-alt3
4.1: 0.91.2-alt1
4.0: 0.90.0-alt1

Group :: Development/Python
RPM: python-module-matplotlib

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: python-module-matplotlib.patch
Download


--- lib/matplotlib/afm.py.orig	2007-11-30 05:36:48 +0300
+++ lib/matplotlib/afm.py	2008-03-04 00:42:27 +0300
@@ -440,8 +440,8 @@ class AFM:
         return self._header['FamilyName']
 
     def get_weight(self):
-        "Return the font weight, eg, 'Bold' or 'Roman'"
-        return self._header['Weight']
+        "Return the font weight, eg, 'Bold' or 'Roman'. Hack due Weight field problem."
+        return 'Roman'
 
     def get_angle(self):
         "Return the fontangle as float"
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin