Changeset 197
- Timestamp:
- 04/14/09 08:41:04 (3 years ago)
- Files:
-
- trunk/Lib/robofab/objects/objectsFL.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Lib/robofab/objects/objectsFL.py
r175 r197 11 11 BasePostScriptFontHintValues, postScriptHintDataLibKey, BasePostScriptGlyphHintValues 12 12 from fontTools.misc import arrayTools 13 from robofab.pens.flPen import FLPointPen 13 from robofab.pens.flPen import FLPointPen, FLPointContourPen 14 14 from robofab import RoboFabError 15 15 import os … … 417 417 wrapped = FL_RGlyph(flGlyph) # rf wrapper for FL glyph 418 418 if not clear: 419 # copy the existing mask data first420 existingMask = getGlyphFromMask(targetGlyph)421 pen = wrapped.getPointPen() # get a pen for the wrapper422 existingMask.drawPoints(pen)423 pen = wrapped.getPointPen() # get a pen for the wrapper419 # copy the existing mask data first 420 existingMask = getGlyphFromMask(targetGlyph) 421 pen = FLPointContourPen(existingMask) 422 existingMask.drawPoints(pen) 423 pen = FLPointContourPen(wrapped) 424 424 maskGlyph.drawPoints(pen) # draw the data 425 425 targetGlyph.naked().mask = wrapped .naked()
