diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-01-08 12:27:53 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-01-08 12:27:53 +0100 |
commit | 3a048d406386e8b8eb5c1315e57d271237da89be (patch) | |
tree | 1355dd8258152085a5225318e2932d7a406da9c5 /tex/context/base/mkxl/font-ini.mklx | |
parent | 91a47fa6fbfacd23d2802c41d3c908569070bdf2 (diff) | |
download | context-3a048d406386e8b8eb5c1315e57d271237da89be.tar.gz |
2021-01-08 11:47:00
Diffstat (limited to 'tex/context/base/mkxl/font-ini.mklx')
-rw-r--r-- | tex/context/base/mkxl/font-ini.mklx | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/tex/context/base/mkxl/font-ini.mklx b/tex/context/base/mkxl/font-ini.mklx index ea049bc38..764fbfdab 100644 --- a/tex/context/base/mkxl/font-ini.mklx +++ b/tex/context/base/mkxl/font-ini.mklx @@ -657,9 +657,11 @@ \permanent\def\safontscale{\number\dimexpr\v_font_size_absolute\relax} \permanent\def\mofontscale{\number\dimexpr\font_basics_set_mapped_fontsize\v_font_size_absolute\relax} -\mutable\let\somefontname\s!unknown -\mutable\let\somefontspec\s!unknown -\mutable\let\somefontsize\zerocount +\mutable\let\somefontname \s!unknown +\mutable\let\somefontspec \s!unknown +\mutable\let\somefontsize \zerocount +\mutable\let\somefontsizey\empty +\mutable\let\somefontsizey\empty \newcount\scaledfontmode % also used at the lua end \newcount\scaledfontsize % also used at the lua end @@ -705,6 +707,8 @@ {% we can now set more at the lua end \glet\somefontname\defaultfontfile \let\somefontsize\empty + \let\somefontsizex\empty + \let\somefontsizey\empty \clf_definefont_one{\detokenize\expandafter{\normalexpanded{#specification}}}% the escapestring catches at \somedimen % sets \scaledfontmode and \somefontname and \somefontsize \ifcase\fontface\relax @@ -818,6 +822,8 @@ {% we can now set more at the lua end \glet\somefontname\defaultfontfile \let\somefontsize\empty + \let\somefontsizex\empty + \let\somefontsizey\empty \clf_definefont_one{\detokenize\expandafter{\normalexpanded{#specification}}}% the escapestring catches at \somedimen % sets \scaledfontmode and \somefontname and \somefontsize \ifcase\fontface\relax @@ -941,10 +947,18 @@ \else \c_font_future_glyph_scale \fi + \ifempty\somefontsizex\else + \edef\somefontsizex{\glyphxscale\somefontsizex\relax}% todo: inserts relax + \fi + \ifempty\somefontsizey\else + \edef\somefontsizey{\glyphyscale\somefontsizey\relax}% + \fi \ifempty\fontclass\else\global\fi \protected\edefcsname#csname\endcsname {\setfontid\the\fontid\csname#csname\endcsname\relax - \glyphscale\the\glyphscale\relax}% + \glyphscale\the\glyphscale\relax + \somefontsizex + \somefontsizey}% % \expandafter\let\expandafter\lastrawfontcall\csname#csname\endcsname \the\everydefinefont |