Changeset 194
- Timestamp:
- 04/21/08 08:18:49 (9 months ago)
- Files:
-
- packages/defcon/trunk/Lib/defcon/objects/font.py (modified) (1 diff)
- packages/defcon/trunk/Lib/defcon/objects/glyph.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
packages/defcon/trunk/Lib/defcon/objects/font.py
r165 r194 114 114 if name in self: 115 115 self.unicodeData.removeGlyphData(name, self[name].unicodes) 116 glyph = self._glyphClass( self.dispatcher,contourClass=self._glyphContourClass)116 glyph = self._glyphClass(contourClass=self._glyphContourClass) 117 117 glyph.name = name 118 118 self._glyphs[name] = glyph packages/defcon/trunk/Lib/defcon/objects/glyph.py
r192 r194 18 18 _notificationName = "Glyph.Changed" 19 19 20 def __init__(self, dispatcher=None,contourClass=None, componentClass=None, anchorClass=None):20 def __init__(self, contourClass=None, componentClass=None, anchorClass=None): 21 21 super(Glyph, self).__init__() 22 22 self._parent = None … … 27 27 self.note = None 28 28 self.lib = {} 29 self._dispatcher = dispatcher29 self._dispatcher = None 30 30 31 31 self._contours = [] … … 51 51 self.anchorClass = anchorClass 52 52 53 if dispatcher is not None:54 self.addObserver(observer=self, methodName="destroyAllRepresentations", notification="Glyph.Changed")55 56 53 def _set_dispatcher(self, dispatcher): 57 54 super(Glyph, self)._set_dispatcher(dispatcher) … … 63 60 for anchor in self._anchors: 64 61 self._setParentDataInAnchor(anchor) 62 self.addObserver(observer=self, methodName="destroyAllRepresentations", notification="Glyph.Changed") 65 63 66 64 def _get_dispatcher(self):
