From 179222bf2f46fb90d120342d4910d2ad5467193b Mon Sep 17 00:00:00 2001 From: Will Robertson Date: Fri, 22 Feb 2019 14:45:42 +1030 Subject: [PATCH] fix problems from ScaleAgain being too small closes #515 thanks RuixiZhang42 for the confidence this new value is appropriate --- um-code-main.dtx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/um-code-main.dtx b/um-code-main.dtx index 5857684..2c6e7bb 100644 --- a/um-code-main.dtx +++ b/um-code-main.dtx @@ -282,13 +282,15 @@ % % \begin{macro}{\@@_setup_legacy_fam_two:} % \TeX\ won't load the same font twice at the same scale, so we need to magnify this one by an imperceptable amount. +% Note that for extreme font sizes, this scaling value might need to be adjusted. +% 1.0001 should be enough for reasonable use cases however. % \begin{macrocode} \@@_cs_new:Nn \@@_setup_legacy_fam_two: { \fontspec_set_family:Nxn \l_@@_fam_two_tl { \l_@@_font_keyval_tl, - ScaleAgain = 1.00001, + ScaleAgain = 1.0001, FontAdjustment = { \@@_copy_fontdimen:nnN { 8} {43} \g_@@_main_font_cmd_tl @@ -329,7 +331,7 @@ \fontspec_set_family:Nxn \l_@@_fam_three_tl { \l_@@_font_keyval_tl, - ScaleAgain = 0.99999, + ScaleAgain = 0.9999, FontAdjustment = { \@@_copy_fontdimen:nnN { 8} {48} \g_@@_main_font_cmd_tl \@@_copy_fontdimen:nnN { 9} {28} \g_@@_main_font_cmd_tl