summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2011-10-01 18:21:09 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2011-10-01 18:21:09 +0200
commitba68760ae19267de980f4c1856c280f6db8a379b (patch)
tree46e77a8131e19006adc51b19ea60efeb5a636bd5
parent694324a51ea7859008570313cca2cc6f6ef7e667 (diff)
downloadluaotfload-ba68760ae19267de980f4c1856c280f6db8a379b.tar.gz
Revert "Temporarly add this code back, I want to make a release"
This reverts commit acca6bfc8c0efcbb4e877dd97fcf945194f8ba8b. Code moved to unicode-math
-rw-r--r--luaotfload.dtx26
1 files changed, 0 insertions, 26 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index 7e4d8ed..648a0b3 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -686,32 +686,6 @@ luatexbase.add_to_callback("find_vf_file",
fonts.vf.find,
"luaotfload.find_vf_file")
% \end{macrocode}
-% XXX: see https://github.com/wspr/unicode-math/issues/185
-%
-% \luatex does not provide interface to accessing
-% |(Script)ScriptPercentScaleDown| math constants, so we
-% emulate \xetex behaviour by setting |\fontdimen10| and
-% |\fontdimen11|.
-%
-% \begin{macrocode}
-local function set_sscale_diments(fontdata)
- local mc = fontdata.MathConstants
- if mc then
- if mc["ScriptPercentScaleDown"] then
- fontdata.parameters[10] = mc.ScriptPercentScaleDown
- else -- resort to plain TeX default
- fontdata.parameters[10] = 70
- end
- if mc["ScriptScriptPercentScaleDown"] then
- fontdata.parameters[11] = mc.ScriptScriptPercentScaleDown
- else -- resort to plain TeX default
- fontdata.parameters[11] = 50
- end
- end
-end
-
-luatexbase.add_to_callback("luaotfload.patch_font", set_sscale_diments, "unicodemath.set_sscale_diments")
-% \end{macrocode}
%
% \iffalse
%</lua>