diff options
-rw-r--r-- | Build/source/texk/web2c/xetexdir/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/xetexdir/XeTeXOTMath.cpp | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/xetexdir/ChangeLog b/Build/source/texk/web2c/xetexdir/ChangeLog index 9f661c4f6e2..598c92efd55 100644 --- a/Build/source/texk/web2c/xetexdir/ChangeLog +++ b/Build/source/texk/web2c/xetexdir/ChangeLog @@ -1,3 +1,7 @@ +2016-10-03 Akira Kakuto <kakuto@fuk.kinidai.ac.jp> + + * XeTeXOTMath.cpp: Sync with the upstream.. + 2016-09-25 Akira Kakuto <kakuto@fuk.kinidai.ac.jp> * MathTable.h, XeTeXOTMath.cpp: Sync with the upstream.. diff --git a/Build/source/texk/web2c/xetexdir/XeTeXOTMath.cpp b/Build/source/texk/web2c/xetexdir/XeTeXOTMath.cpp index 9892157336f..a10cc21d236 100644 --- a/Build/source/texk/web2c/xetexdir/XeTeXOTMath.cpp +++ b/Build/source/texk/web2c/xetexdir/XeTeXOTMath.cpp @@ -34,6 +34,7 @@ authorization from the copyright holders. #include <w2c/config.h> #include <assert.h> +#include <algorithm> #include "XeTeXOTMath.h" @@ -150,8 +151,13 @@ get_native_mathsy_param(int f, int n) { int rval = 0; - if (n == math_quad || n == delim2) + if (n == math_quad) { rval = fontsize[f]; + } + else if (n == delim2) { // XXX not sure what OT parameter we should use here; + // for now we use 1.5em, clamped to delim1 height + rval = std::min<int>(1.5 * fontsize[f], get_native_mathsy_param(f, delim1)); + } else { if (n < sizeof(TeX_sym_to_OT_map) / sizeof(mathConstantIndex)) { mathConstantIndex ot_index = TeX_sym_to_OT_map[n]; |