Changeset 325


Ignore:
Timestamp:
01/15/09 04:13:36 (4 years ago)
Author:
tal
Message:
Use the glyph.controlPointBounds attribute when possible.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/defcon/branches/ufo2/Lib/defcon/objects/font.py

    r317 r325  
    404404 
    405405    def _get_controlPointBounds(self): 
    406         from fontTools.pens.boundsPen import ControlBoundsPen 
    407406        from fontTools.misc.transform import Transform 
    408407        # storage 
     
    413412            if glyphName in self._scheduledForDeletion: 
    414413                continue 
    415             pen = ControlBoundsPen(self) 
    416             glyph.draw(pen) 
    417             glyphRect = pen.bounds 
     414            glyphRect = glyph.controlPointBounds 
    418415            if glyphRect: 
    419416                glyphRects[glyphName] = glyphRect 
Note: See TracChangeset for help on using the changeset viewer.