PostScriptGlyphHintValues reads from data argument if there is one.
git-svn-id: http://svn.robofab.com/trunk@54 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
This commit is contained in:
parent
5d3393baab
commit
e9a403fec1
@ -71,7 +71,8 @@ class PostScriptFontHintValues(BasePostScriptFontHintValues):
|
|||||||
BasePostScriptFontHintValues.__init__(self)
|
BasePostScriptFontHintValues.__init__(self)
|
||||||
if aFont is not None:
|
if aFont is not None:
|
||||||
self.setParent(aFont)
|
self.setParent(aFont)
|
||||||
data = aFont.lib.get(postScriptHintDataLibKey)
|
libData = aFont.lib.get(postScriptHintDataLibKey)
|
||||||
|
self.fromDict(libData)
|
||||||
if data is not None:
|
if data is not None:
|
||||||
self.fromDict(data)
|
self.fromDict(data)
|
||||||
|
|
||||||
@ -93,6 +94,8 @@ class PostScriptGlyphHintValues(BasePostScriptGlyphHintValues):
|
|||||||
if aGlyph is not None:
|
if aGlyph is not None:
|
||||||
self.setParent(aGlyph)
|
self.setParent(aGlyph)
|
||||||
self._loadFromLib(aGlyph.lib)
|
self._loadFromLib(aGlyph.lib)
|
||||||
|
if data is not None:
|
||||||
|
self.fromDict(data)
|
||||||
|
|
||||||
|
|
||||||
class RFont(BaseFont):
|
class RFont(BaseFont):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user