summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/subset-fonts.pe4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/subset-fonts.pe b/scripts/subset-fonts.pe
index 8c1d2b78..9c7e5894 100755
--- a/scripts/subset-fonts.pe
+++ b/scripts/subset-fonts.pe
@@ -237,6 +237,8 @@ while (fi < num_copy_fonts)
#endif
# BOM (zero-width no-break space) and no-break space
SelectMoreSingletons(0ufeff,0u00a0)
+ # Keep .notdef, which will be used as the default glyph if the font is missing a glyph
+ SelectMore('.notdef')
# Drop all glyphs that weren't selected
SelectInvert()
Clear()
@@ -355,6 +357,8 @@ while (fi < num_code_fonts)
new_suffix = "-" + script + "-conums.ttf"
endif
endif
+ # Keep .notdef, which will be used as the default glyph if the font is missing a glyph
+ SelectMore('.notdef')
SelectInvert()
Clear()
SelectNone()