summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2020-04-04 21:00:35 +0300
committerRasmus Andersson <rasmus@notion.se>2020-04-04 21:00:35 +0300
commite95089f58b0cff1f90c1ac00d0b01f8b523a5017 (patch)
treeb726d7f5bba22c8824e61ded6dc41f12ca05e8af
parent583bd898767eae8e0fefcf9f23a7fd6f7f50a634 (diff)
downloadinter-e95089f58b0cff1f90c1ac00d0b01f8b523a5017.tar.xz
fontbuild: fix bug where if g.lib did not have com.schriftgestaltung.Glyphs.lastChange the program would crash
-rwxr-xr-xmisc/fontbuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/fontbuild b/misc/fontbuild
index e3556f3a1..ea9f48f5d 100755
--- a/misc/fontbuild
+++ b/misc/fontbuild
@@ -270,7 +270,8 @@ class Main(object):
# unused
stripGlyphs.append(g.name)
g.clearAnchors()
- del g.lib['com.schriftgestaltung.Glyphs.lastChange']
+ if 'com.schriftgestaltung.Glyphs.lastChange' in g.lib:
+ del g.lib['com.schriftgestaltung.Glyphs.lastChange']
# update possibly modified glyphorder
font.lib['public.glyphOrder'] = list(glyphOrder)