summaryrefslogtreecommitdiff
path: root/luaotfload.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'luaotfload.dtx')
-rw-r--r--luaotfload.dtx26
1 files changed, 1 insertions, 25 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index c046674..6542f8d 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -572,31 +572,7 @@ luatexbase.create_callback("luaotfload.patch_font", "simple", function() end)
% \begin{macrocode}
local function def_font(...)
local fontdata = fonts.definers.read(...)
- if type(fontdata) == "table" and fontdata.shared then
-% \end{macrocode}
-%
-% Then we populate |MathConstants| table, which is required for OpenType
-% math.
-%
-% \begin{macrocode}
- local otfdata = fontdata.shared.rawdata
- if otfdata.metadata.math then
- local params = fontdata.parameters
- local mc = { }
- for k,v in next, otfdata.metadata.math do
- if k:find("Percent") then
- -- keep percent values as is
- mc[k] = v
- else
- mc[k] = v / params.units * params.size
- end
- end
- -- for \overwithdelims
- mc.FractionDelimiterSize = 1.01 * params.size
- mc.FractionDelimiterDisplayStyleSize = 2.39 * params.size
-
- fontdata.MathConstants = mc
- end
+ if type(fontdata) == "table" then
% \end{macrocode}
%
% Execute any registered font patching callbacks.