[tex-live] Fix excessively wide math accents on scripted glyphs

Khaled Hosny khaledhosny at eglug.org
Sun Feb 19 18:43:21 CET 2012


Hi all,

I think this have been reported several times before; with OpenType math
fonts accents over scripted glyphs are too wide as if the accent were to
be placed over the scripts as well. With a bit of investigation, it
turns out that with OpenType fonts, XeTeX is choosing the accent based
on the width of the box after adding the scripts to it unlike how it
does with legacy fonts, so unless there is really a good reason to do
that (I don't think so), it should check against the width of the box
before adding the scripts. The attached patch simplifies the code a tiny
bit to use the correct width, fixing this issue.

Regards,
 Khaled

P.S. \hat and \widehat are currently identical, but this is another
issue not related to this.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: accent.diff
Type: text/x-diff
Size: 729 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex-live/attachments/20120219/f76e5a24/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: accent.tex
Type: text/x-tex
Size: 374 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex-live/attachments/20120219/f76e5a24/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: before.pdf
Type: application/pdf
Size: 3649 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex-live/attachments/20120219/f76e5a24/attachment.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: after.pdf
Type: application/pdf
Size: 3648 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex-live/attachments/20120219/f76e5a24/attachment-0001.pdf>


More information about the tex-live mailing list