diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-07-21 15:45:06 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2019-07-22 00:01:35 -0600 |
| commit | 660834dcc7d0b1d3fd4cf04db2674485d94d6d8d (patch) | |
| tree | fff4e0ab3b3d74defa6d31f6dcf3dc1958ca7e6e /scripts | |
| parent | bcbc1e4c157948303a4b8a3ac9c60f47c1b55987 (diff) | |
resolves #282 include all alphanumeric characters in code font (mplus1mn)
- create new subset variant of mplus1mn font that includes all alphanumeric characters
- switch default themes to use subset variant of mplus1mn font
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/subset-fonts.pe | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/scripts/subset-fonts.pe b/scripts/subset-fonts.pe index 30d34690..a11f6373 100755 --- a/scripts/subset-fonts.pe +++ b/scripts/subset-fonts.pe @@ -42,7 +42,7 @@ copy_fonts = ["NotoSerif-Regular.ttf", "NotoSerif-Bold.ttf", "NotoSerif-Italic.t # FIXME reenable copy_scripts to be customized at top level; disabled due to support for mplus1p-regular-fallback # copy_scripts = ["subset"] code_fonts = ["mplus-1mn-light.ttf", "mplus-1mn-regular.ttf", "mplus-1mn-medium.ttf", "mplus-1mn-bold.ttf"] -code_scripts = ["ascii"] +code_scripts = ["ascii", "subset"] if ($argc >= 2) source_dir = $argv[1] @@ -331,6 +331,18 @@ while (fi < num_code_fonts) SelectNone() # Basic Latin (e.g., English) SelectMore(0u0020,0u007e) + if (script == "subset") + # Latin-1 Supplement (covers core Western European languages) + SelectMore(0u00a1,0u00fd) + # Latin Extended-A (covers Czech, Dutch, Polish & Turkish, esp. names) + SelectMore(0u0100,0u017f) + # Greek Alphabet (frequently used for math) + SelectMore(0u0391,0u03c9) + # Euro sign + SelectMore(0u20ac) + # Cyrillic + SelectMore(0u0400,0u04ff) + endif # No-break space SelectMore(0u00a0) # Box drawing symbols (for unix `tree` output) |
