diff options
author | Rasmus Andersson <rasmus@notion.se> | 2020-04-04 21:00:35 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2020-04-04 21:00:35 +0300 |
commit | e95089f58b0cff1f90c1ac00d0b01f8b523a5017 (patch) | |
tree | b726d7f5bba22c8824e61ded6dc41f12ca05e8af /misc/fontbuild | |
parent | 583bd898767eae8e0fefcf9f23a7fd6f7f50a634 (diff) | |
download | inter-e95089f58b0cff1f90c1ac00d0b01f8b523a5017.tar.xz |
fontbuild: fix bug where if g.lib did not have com.schriftgestaltung.Glyphs.lastChange the program would crash
Diffstat (limited to 'misc/fontbuild')
-rwxr-xr-x | misc/fontbuild | 3 |
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) |