Skip to content

Commit

Permalink
keep all keys that start with public. (#1747)
Browse files Browse the repository at this point in the history
  • Loading branch information
arialcrime committed Jul 8, 2024
1 parent 4a82ba7 commit 8f47516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/afdko/makeinstancesufo.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def updateInstance(fontInstancePath, options):

def clearCustomLibs(dFont):
for key in list(dFont.lib.keys()):
if key not in ['public.glyphOrder', 'public.postscriptNames']:
if not key.startswith('public.'):
del dFont.lib[key]

libGlyphs = [g for g in dFont if len(g.lib)]
Expand Down

0 comments on commit 8f47516

Please sign in to comment.