diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-07-21 16:30:15 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2019-07-21 16:30:15 -0600 |
| commit | 06bf31873a4fcc92d43e36ee0002aa29a4647594 (patch) | |
| tree | 792db3b5174ef85d99dbd20be53cd30435eaf959 /scripts/subset-fonts.pe | |
| parent | a4897269312e717054edc378cd2acb7d7585c9bf (diff) | |
use $em to compute scale factor in subset fonts script
Diffstat (limited to 'scripts/subset-fonts.pe')
| -rwxr-xr-x | scripts/subset-fonts.pe | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/subset-fonts.pe b/scripts/subset-fonts.pe index 60763974..298d696e 100755 --- a/scripts/subset-fonts.pe +++ b/scripts/subset-fonts.pe @@ -105,13 +105,16 @@ while (fi < num_copy_fonts) endif Print("Stealing double arrows from M+ 1p...") Open(mplus1p_src_filepath) + from_em = $em SelectSingletons(0u21d0,0u21d2) Copy() Close() Open(src_filepath) SelectSingletons(0u21d0,0u21d2) Paste() - Scale(200, 200) + # TODO to be strictly accurate, multiply $em by 1.0 + scale_factor = ($em / from_em) * 100 + Scale(scale_factor, scale_factor) SetWidth(2048) CenterInWidth() # Move single and double arrows up to align with middle of X |
