summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/font-con.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-01-05 11:45:00 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-01-05 11:45:00 +0100
commit6032373f72b7980d5b197eb371f1d56ecb800ee8 (patch)
treea4b8909aea02ccedcffac468dc80e5c7d88850e6 /tex/context/base/mkiv/font-con.lua
parenta04a6e9b9b68a836f27d971115fd1049c04e6c19 (diff)
downloadcontext-6032373f72b7980d5b197eb371f1d56ecb800ee8.tar.gz
2021-01-05 10:44:00
Diffstat (limited to 'tex/context/base/mkiv/font-con.lua')
-rw-r--r--tex/context/base/mkiv/font-con.lua16
1 files changed, 10 insertions, 6 deletions
diff --git a/tex/context/base/mkiv/font-con.lua b/tex/context/base/mkiv/font-con.lua
index 7162338c6..f650e5b03 100644
--- a/tex/context/base/mkiv/font-con.lua
+++ b/tex/context/base/mkiv/font-con.lua
@@ -600,13 +600,17 @@ function constructors.scale(tfmdata,specification)
--
if hasmath then
constructors.assignmathparameters(target,tfmdata) -- does scaling and whatever is needed
- properties.hasmath = true
- target.nomath = false
- target.MathConstants = target.mathparameters
+ properties.hasmath = true
+ target.nomath = false
+ target.MathConstants = target.mathparameters
+ --
+ local oldmath = properties.oldmath
+ targetproperties.oldmath = oldmath
+ target.oldmath = oldmath
else
- properties.hasmath = false
- target.nomath = true
- target.mathparameters = nil -- nop
+ properties.hasmath = false
+ target.nomath = true
+ target.mathparameters = nil -- nop
end
--
-- Here we support some context specific trickery (this might move to a plugin). During the