From a0ca125438edba6d16edaad9edd699bc10be568c Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 23 Jul 2019 23:52:48 -0600 Subject: use em size to compute scaling of imported glyphs --- scripts/subset-fonts.pe | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts') 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) -- cgit v1.2.3