summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/font-otl.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/font-otl.lua')
-rw-r--r--tex/context/base/mkiv/font-otl.lua40
1 files changed, 24 insertions, 16 deletions
diff --git a/tex/context/base/mkiv/font-otl.lua b/tex/context/base/mkiv/font-otl.lua
index 4199db03f..fc101c9c9 100644
--- a/tex/context/base/mkiv/font-otl.lua
+++ b/tex/context/base/mkiv/font-otl.lua
@@ -643,25 +643,33 @@ local function read_from_otf(specification)
return tfmdata
end
--- local function checkmathsize(tfmdata,mathsize)
--- local mathdata = tfmdata.shared.rawdata.metadata.math
--- local mathsize = tonumber(mathsize)
--- if mathdata then -- we cannot use mathparameters as luatex will complain
--- local parameters = tfmdata.parameters
--- parameters.scriptpercentage = mathdata.ScriptPercentScaleDown
--- parameters.scriptscriptpercentage = mathdata.ScriptScriptPercentScaleDown
--- parameters.mathsize = mathsize -- only when a number !
+-- if context then
+--
+-- -- so the next will go to some generic module instead
+--
+-- else
+--
+-- local function checkmathsize(tfmdata,mathsize)
+-- local mathdata = tfmdata.shared.rawdata.metadata.math
+-- local mathsize = tonumber(mathsize)
+-- if mathdata then -- we cannot use mathparameters as luatex will complain
+-- local parameters = tfmdata.parameters
+-- parameters.scriptpercentage = mathdata.ScriptPercentScaleDown
+-- parameters.scriptscriptpercentage = mathdata.ScriptScriptPercentScaleDown
+-- parameters.mathsize = mathsize -- only when a number !
+-- end
-- end
--- end
--
--- registerotffeature {
--- name = "mathsize",
--- description = "apply mathsize specified in the font",
--- initializers = {
--- base = checkmathsize,
--- node = checkmathsize,
+-- registerotffeature {
+-- name = "mathsize",
+-- description = "apply mathsize specified in the font",
+-- initializers = {
+-- base = checkmathsize,
+-- node = checkmathsize,
+-- }
-- }
--- }
+--
+-- end
-- readers