summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2011-10-07 02:29:40 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2011-10-07 02:29:40 +0200
commit18cac19a8a01e516062e9f2bf6eb6bc2894a8991 (patch)
tree3a62a3440d06b5fda104fe58676a09142d5df22a
parent1e3820ff158bb9d23e9d75116fecd28a64656d2c (diff)
downloadluaotfload-18cac19a8a01e516062e9f2bf6eb6bc2894a8991.tar.gz
We no longer need to fiddle with MathConstants table
-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.