Changeset 115

Show
Ignore:
Timestamp:
12/16/07 10:27:08 (1 year ago)
Author:
tal
Message:
Patches from Erik van Blokland:
- weightValue can be interpolated.
- handle None in _processMathTwo.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • packages/fontMath/trunk/Lib/fontMath/mathInfo.py

    r1 r115  
    99        'defaultWidth', 
    1010        'italicAngle', 
    11         'slantAngle' 
     11        'slantAngle', 
     12        'weightValue' 
    1213        ] 
    1314 
     
    4445            if hasattr(copiedInfo, attr): 
    4546                v = getattr(copiedInfo, attr) 
    46                 v = funct(v, factor) 
     47                if v is not None and factor is not None: 
     48                    v = funct(v, factor) 
     49                else: 
     50                    v = None 
    4751                setattr(copiedInfo, attr, v) 
    4852