texlive[42194] Build/source/texk/web2c/xetexdir:
commits+kakuto at tug.org
commits+kakuto at tug.org
Mon Oct 3 13:46:27 CEST 2016
Revision: 42194
http://tug.org/svn/texlive?view=revision&revision=42194
Author: kakuto
Date: 2016-10-03 13:46:26 +0200 (Mon, 03 Oct 2016)
Log Message:
-----------
xetexdir/XeTeXOTMath.cpp: sync with the upstream
Modified Paths:
--------------
trunk/Build/source/texk/web2c/xetexdir/ChangeLog
trunk/Build/source/texk/web2c/xetexdir/XeTeXOTMath.cpp
Modified: trunk/Build/source/texk/web2c/xetexdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/xetexdir/ChangeLog 2016-10-03 01:10:43 UTC (rev 42193)
+++ trunk/Build/source/texk/web2c/xetexdir/ChangeLog 2016-10-03 11:46:26 UTC (rev 42194)
@@ -1,3 +1,7 @@
+2016-10-03 Akira Kakuto <kakuto at fuk.kinidai.ac.jp>
+
+ * XeTeXOTMath.cpp: Sync with the upstream..
+
2016-09-25 Akira Kakuto <kakuto at fuk.kinidai.ac.jp>
* MathTable.h, XeTeXOTMath.cpp: Sync with the upstream..
Modified: trunk/Build/source/texk/web2c/xetexdir/XeTeXOTMath.cpp
===================================================================
--- trunk/Build/source/texk/web2c/xetexdir/XeTeXOTMath.cpp 2016-10-03 01:10:43 UTC (rev 42193)
+++ trunk/Build/source/texk/web2c/xetexdir/XeTeXOTMath.cpp 2016-10-03 11:46:26 UTC (rev 42194)
@@ -34,6 +34,7 @@
#include <w2c/config.h>
#include <assert.h>
+#include <algorithm>
#include "XeTeXOTMath.h"
@@ -150,8 +151,13 @@
{
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];
More information about the tex-live-commits
mailing list