[XeTeX] Fixing displacement of big operator's limits with some fonts

Khaled Hosny khaledhosny at eglug.org
Sat Feb 18 21:15:21 CET 2012


Hi all,

A while ago, it has been reported that with certain version of Neo Euler
font, summation limits were displaced[1] and the issue were later fixed
by changing DisplayOperatorMinHeight math constant.

Now I found the root of this. If DisplayOperatorMinHeight is higher than
the height+depth of the display variant of a big operator, the limits
are displaced (which was the case with summation in Neo Euler), this is
because the code path in this case does not update the metrics of the
constructed box to that of the last found glyph and keep using the
metrics of the base glyph.

The attached patch fixes this issue for me, as demonstrated by the
attached files.

[1] http://tug.org/pipermail/xetex/2010-October/019007.html

Regards,
 Khaled

P.S. The limits of the first formula in the page being set in script
style, but it seems to be an unrelated issue, and happens with other
fonts as well.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: limits.diff
Type: text/x-diff
Size: 515 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20120218/f5a873f3/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ok-euler.otf
Type: application/octet-stream
Size: 358296 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20120218/f5a873f3/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug-euler.otf
Type: application/octet-stream
Size: 358320 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20120218/f5a873f3/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tex
Type: text/x-tex
Size: 188 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20120218/f5a873f3/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: after.pdf
Type: application/pdf
Size: 4153 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20120218/f5a873f3/attachment-0002.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: before.pdf
Type: application/pdf
Size: 4160 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20120218/f5a873f3/attachment-0003.pdf>


More information about the XeTeX mailing list