summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2019-07-23 23:52:48 -0600
committerDan Allen <dan.j.allen@gmail.com>2019-07-24 00:09:01 -0600
commita0ca125438edba6d16edaad9edd699bc10be568c (patch)
tree6a4809917bcd1aedbca0f9205f99ae69e0afb8a5 /scripts
parent1bce8e47e48dbe12a4ee19bd0051eed5da764455 (diff)
use em size to compute scaling of imported glyphs
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/subset-fonts.pe5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/subset-fonts.pe b/scripts/subset-fonts.pe
index 9debdce1..8c1d2b78 100755
--- a/scripts/subset-fonts.pe
+++ b/scripts/subset-fonts.pe
@@ -114,10 +114,9 @@ while (fi < num_copy_fonts)
Open(src_filepath)
SelectSingletons(0u21d0,0u21d2)
Paste()
- # TODO to be strictly accurate, multiply $em by 1.0
- scale_factor = ($em / from_em) * 100
+ scale_factor = (1.0 * $em / from_em) * 100
Scale(scale_factor, scale_factor)
- SetWidth(2048)
+ SetWidth($em)
CenterInWidth()
# Move single and double arrows up to align with middle of X
SelectMoreSingletons(0u2190,0u2192)