diff options
author | Hans Hagen <pragma@wxs.nl> | 2011-02-16 10:54:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2011-02-16 10:54:00 +0100 |
commit | 35c6628f423348b507ceb53016942c1c9978f5ad (patch) | |
tree | 309078c2a9f398433185c8a057447796f05e5735 /tex/context/base/font-ini.mkiv | |
parent | d2f628a96f94ce8e83ac33f461e091f3f56f62fb (diff) | |
download | context-35c6628f423348b507ceb53016942c1c9978f5ad.tar.gz |
beta 2011.02.16 10:54
Diffstat (limited to 'tex/context/base/font-ini.mkiv')
-rw-r--r-- | tex/context/base/font-ini.mkiv | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tex/context/base/font-ini.mkiv b/tex/context/base/font-ini.mkiv index 2df79815f..0c5a3b9f2 100644 --- a/tex/context/base/font-ini.mkiv +++ b/tex/context/base/font-ini.mkiv @@ -687,8 +687,8 @@ \let\relativefontid\empty -\def\lowleveldefinefont#1#2% #2 = cs - {% +\unexpanded\def\lowleveldefinefont#1#2% #2 = cs + {% we can now set more at the lua end \ctxlua{fonts.definers.stage_one("\luaescapestring{#1}")}% the escapestring catches at \somedimen % sets \scaledfontmode and \somefontname and \somefontsize \ifcase\scaledfontmode\relax @@ -709,6 +709,7 @@ % scaled, don't use this one as it's unpredictable \scaledfontsize-\somefontsize\scaledpoint \fi + \relax \scaledfontsize\localrelativefontsize\scaledfontsize \ifautofontsize \scaledfontsize\currentfontbodyscale\scaledfontsize @@ -735,7 +736,8 @@ "\@@fontclassgoodies", % experiment (not yet used) "\@@fontgoodies" % experiment )}% - \edef\somefontspec{at \somefontsize}% we need the resolved designsize (for fallbacks) +% \edef\somefontspec{at \somefontsize}% we need the resolved designsize (for fallbacks) + \edef\somefontspec{at \number\scaledfontsize sp}% we need the resolved designsize (for fallbacks) \expandafter\let\expandafter\lastrawfontcall\csname#2\endcsname \the\everydefinefont} |