From 561e836ea430f549d32c9addc86e156d22679955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20Bramb=C3=B6ck?= Date: Wed, 19 Jun 2024 16:30:30 +0200 Subject: [PATCH] keep all keys that start with public. --- python/afdko/makeinstancesufo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/afdko/makeinstancesufo.py b/python/afdko/makeinstancesufo.py index 6ed0a05dd..42d664372 100644 --- a/python/afdko/makeinstancesufo.py +++ b/python/afdko/makeinstancesufo.py @@ -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)]