summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-07-15 16:46:40 +0300
committerKhaled Hosny <khaledhosny@eglug.org>2010-07-15 17:00:52 +0300
commit89ec47708d84d0a7951f952f5ba23191a8d67ed1 (patch)
treee57f620b1b2a4e6805a7c7f3994bf62c8f53c3d7
parent40258f4cb81959a4abba74c0af4d89f15c21b228 (diff)
downloadluaotfload-89ec47708d84d0a7951f952f5ba23191a8d67ed1.tar.gz
Fix for \overwithdelims and brothers
We now fill in two extra math constants, FractionDelimiterSize and FractionDelimiterDisplayStyleSize. See: http://tug.org/pipermail/luatex/2010-July/001741.html
-rw-r--r--luaotfload.dtx3
-rw-r--r--tests/math.tex7
2 files changed, 10 insertions, 0 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index b9cf7eb..7e6283b 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -672,6 +672,9 @@ local function def_font(...)
fontdata.MathConstants[k] = v / units * size
end
end
+ -- for \overwithdelims
+ fontdata.MathConstants["FractionDelimiterSize"] = 1.01 * size
+ fontdata.MathConstants["FractionDelimiterDisplayStyleSize"] = 2.39 * size
end
end
diff --git a/tests/math.tex b/tests/math.tex
index 7f62896..0e07b2c 100644
--- a/tests/math.tex
+++ b/tests/math.tex
@@ -27,5 +27,12 @@ A \mathrel{\Uoverdelimiter "4 "2192 {a+b}}
B \mathrel{\Uunderdelimiter "4 "2192 {a+b}}
$$
+$$
+a \overwithdelims() b
+$$
+
+
+\centerline{$ a \overwithdelims() b $}
+
\bye