summaryrefslogtreecommitdiff
path: root/scripts/subset-fonts.pe
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2022-04-18 02:56:18 -0600
committerGitHub <noreply@github.com>2022-04-18 02:56:18 -0600
commit3f257f61aa3ee0f32e1d0679ed3c3d1090c59808 (patch)
treef03abb0fd8b3c981d8da8fe49f16278b17df18c1 /scripts/subset-fonts.pe
parent82b185507808ffc4687800405b9b023c0acf59a9 (diff)
resolves #2010 bundle Noto Sans in addition to Noto Serif and add built-in theme sans-with-fallback-font (PR #2050)
Diffstat (limited to 'scripts/subset-fonts.pe')
-rwxr-xr-xscripts/subset-fonts.pe6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/subset-fonts.pe b/scripts/subset-fonts.pe
index a28de1da..d2e843dc 100755
--- a/scripts/subset-fonts.pe
+++ b/scripts/subset-fonts.pe
@@ -38,7 +38,7 @@
# NOTE best choice for Prawn & web is 0x00 + 0x800 + 0x08
genflags = 0x90 + 0x08
-copy_fonts = ["NotoSerif-Regular.ttf", "NotoSerif-Bold.ttf", "NotoSerif-Italic.ttf", "NotoSerif-BoldItalic.ttf", "mplus-1p-regular.ttf"]
+copy_fonts = ["NotoSerif-Regular.ttf", "NotoSerif-Bold.ttf", "NotoSerif-Italic.ttf", "NotoSerif-BoldItalic.ttf", "NotoSans-Regular.ttf", "NotoSans-Bold.ttf", "NotoSans-Italic.ttf", "NotoSans-BoldItalic.ttf", "mplus-1p-regular.ttf"]
copy_scripts = ["subset"]
emoji_fonts = ["NotoEmoji.ttf"]
emoji_scripts = ["subset"]
@@ -85,7 +85,7 @@ while (fi < num_copy_fonts)
new_filepath = output_dir + "/" + new_filename
if (is_noto)
Print("Stealing glyphs from other fonts...")
- if (new_basename == "notoserif-regular")
+ if (new_basename == "notoserif-regular" || new_basename == "notosans-regular")
Print("Stealing ballot boxes from FontAwesome...")
# Grab ballot boxes from FontAwesome
Open(fa_src_filepath)
@@ -171,7 +171,7 @@ while (fi < num_copy_fonts)
if (is_noto)
# Single arrows (present in Noto Serif, but misaligned) and double arrows (imported from M+ 1p)
SelectMoreSingletons(0u2190,0u2192,0u21d0,0u21d2)
- if (new_basename == "notoserif-regular")
+ if (new_basename == "notoserif-regular" || new_basename == "notosans-regular")
# Ballot boxes (imported from FontAwesome)
SelectMore(0u2610,0u2611)
endif