Fix: if a psHintValues object is initialised without a parent, it should not try to load the lib.
git-svn-id: http://svn.robofab.com/trunk@40 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
This commit is contained in:
parent
fdae4fcb4b
commit
0192232fbe
@ -64,11 +64,12 @@ class PostScriptFontHintValues(BasePostScriptFontHintValues):
|
||||
def __init__(self, aFont=None):
|
||||
# read the data from the font.lib, it won't be anywhere else
|
||||
BasePostScriptFontHintValues.__init__(self)
|
||||
data = aFont.lib.get(postScriptHintDataLibKey)
|
||||
if data is not None:
|
||||
self.fromDict(data)
|
||||
data = None
|
||||
if aFont is not None:
|
||||
self.setParent(aFont)
|
||||
data = aFont.lib.get(postScriptHintDataLibKey)
|
||||
if data is not None:
|
||||
self.fromDict(data)
|
||||
|
||||
def getPostScriptHintDataFromLib(aFont, fontLib):
|
||||
hintData = fontLib.get(postScriptHintDataLibKey)
|
||||
|
Loading…
x
Reference in New Issue
Block a user