diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-01-05 11:45:00 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-01-05 11:45:00 +0100 |
commit | 6032373f72b7980d5b197eb371f1d56ecb800ee8 (patch) | |
tree | a4b8909aea02ccedcffac468dc80e5c7d88850e6 /tex/context/base/mkiv/math-fbk.lua | |
parent | a04a6e9b9b68a836f27d971115fd1049c04e6c19 (diff) | |
download | context-6032373f72b7980d5b197eb371f1d56ecb800ee8.tar.gz |
2021-01-05 10:44:00
Diffstat (limited to 'tex/context/base/mkiv/math-fbk.lua')
-rw-r--r-- | tex/context/base/mkiv/math-fbk.lua | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/math-fbk.lua b/tex/context/base/mkiv/math-fbk.lua index 963461de5..6b43a901b 100644 --- a/tex/context/base/mkiv/math-fbk.lua +++ b/tex/context/base/mkiv/math-fbk.lua @@ -53,13 +53,15 @@ function fallbacks.apply(target,original) -- we also have forcedsize ... at this moment we already passed through -- constructors.scale so we have this set local parameters = target.parameters + local properties = target.properties local mathsize = parameters.mathsize if mathsize < 1 or mathsize > 3 then return end - local characters = target.characters - local size = parameters.size - local usedfonts = target.fonts + local characters = target.characters + local size = parameters.size + local usedfonts = target.fonts + local compactmath = properties.compactmath if not usedfonts then usedfonts = { { id = 0 } } -- we need at least one entry (automatically done anyway) target.fonts = usedfonts @@ -91,6 +93,10 @@ function fallbacks.apply(target,original) else textdata = target end + if compactmath then + scriptid = textid + scriptscriptid = textid + end if scriptid and scriptid ~= 0 then scriptindex = #usedfonts + 1 scriptdata = identifiers[scriptid] |