summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2019-08-06 23:59:13 -0600
committerGitHub <noreply@github.com>2019-08-06 23:59:13 -0600
commit287bdbae82fc5955c7e829295ae8a1387da324a8 (patch)
tree3d65e0bca9d1b775d1128e53ed791f1c6b6ed3b9 /scripts
parent1431d4de843d28266d81c72680d35c67abcf4df7 (diff)
resolves #1194 add the .notdef glyph to the bundled fonts (PR #1195)
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()