defaultWidth was deprecated.

git-svn-id: http://svn.robofab.com/trunk@176 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
This commit is contained in:
Tal Leming 2009-03-26 13:29:09 +00:00
parent 06fc7e9101
commit 010d853105

View File

@ -489,12 +489,18 @@ class RFont(BaseFont):
if clear and glyphName in self:
g = self[glyphName]
g.clear()
g.width = self.info.defaultWidth
w = self.info.postscriptDefaultWidthX
if w is None:
w = 0
g.width = w
return g
g = RGlyph()
g.setParent(self)
g.name = glyphName
g.width = self.info.defaultWidth
w = self.info.postscriptDefaultWidthX
if w is None:
w = 0
g.width = w
g._hasChanged()
self._object[glyphName] = g
# is the user adding a glyph that has the same