diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/subset-fonts.pe | 34 |
1 files changed, 9 insertions, 25 deletions
diff --git a/scripts/subset-fonts.pe b/scripts/subset-fonts.pe index 00f78767..60763974 100755 --- a/scripts/subset-fonts.pe +++ b/scripts/subset-fonts.pe @@ -105,20 +105,17 @@ while (fi < num_copy_fonts) endif Print("Stealing double arrows from M+ 1p...") Open(mplus1p_src_filepath) - SelectMore(0u21d0) - SelectMore(0u21d2) + SelectSingletons(0u21d0,0u21d2) Copy() Close() Open(src_filepath) - SelectMore(0u21d0) - SelectMore(0u21d2) + SelectSingletons(0u21d0,0u21d2) Paste() Scale(200, 200) SetWidth(2048) CenterInWidth() # Move single and double arrows up to align with middle of X - SelectMore(0u2190) - SelectMore(0u2192) + SelectMoreSingletons(0u2190,0u2192) Move(0, 380) SelectNone() Print("Done stealing glyphs from other fonts") @@ -132,7 +129,6 @@ while (fi < num_copy_fonts) # Basic Latin (e.g., English) SelectMore(0u0020,0u007e) # Latin-1 Supplement (covers core Western European languages) - #SelectMore(0u00a1,0u00ff) SelectMore(0u00a1,0u00fd) # Latin Extended-A (covers Czech, Dutch, Polish & Turkish, esp. names) SelectMore(0u0100,0u017f) @@ -166,12 +162,8 @@ while (fi < num_copy_fonts) # Greek (frequently used for math and bullets) SelectMore(0u0370,0u03ff) if (is_noto) - # Single arrows (present in Noto Serif, but misaligned) - SelectMore(0u2190) - SelectMore(0u2192) - # Double arrows (missing from Noto Serif originally) - SelectMore(0u21d0) - SelectMore(0u21d2) + # 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") # Ballot boxes (imported from FontAwesome) SelectMore(0u2610,0u2611) @@ -185,7 +177,6 @@ while (fi < num_copy_fonts) # Double arrows SelectMore(0u21d0,0u21d5) # Ballot boxes - #SelectMore(0u2610,0u2612) SelectMore(0u2610,0u2611) # Check mark SelectMore(0u2713) @@ -237,15 +228,11 @@ while (fi < num_copy_fonts) # #SelectMore(0u0500,0u052f) # # Greek Extended (i.e., Polytonic) # #SelectMore(0u1f00,0u1fff) - # # Select all them symbols + # # Or just select all them symbols... # SelectAll() #endif - # BOM (zero-width no-break space) - SelectMore(0ufeff) - # No-break space - SelectMore(0u00a0) - # Non-marking return (QUESTION do we really need this?) - #SelectMore(0u000d) + # BOM (zero-width no-break space) and no-break space + SelectMoreSingletons(0ufeff,0u00a0) # Drop all glyphs that weren't selected SelectInvert() Clear() @@ -255,9 +242,7 @@ while (fi < num_copy_fonts) Select(0u00a0) Copy() SelectNone() - SelectMore(0ufeff) - SelectMore(0u200b) - SelectMore(0u2060) + SelectSingletons(0ufeff,0u200b,0u2060) Paste() SetWidth(0) SelectNone() @@ -344,7 +329,6 @@ while (fi < num_code_fonts) SelectMore(0u2460,0u2473) SelectMore(0u2776,0u277f) SelectMore(0u24eb,0u24f4) - #SelectMore(0u278a,0u2793) new_suffix = "-ascii-conums.ttf" endif SelectInvert() |
