[XeTeX] ** ERROR ** Invalid glyph index (gid 3743)

Khaled Hosny khaledhosny at eglug.org
Fri Apr 26 11:15:02 CEST 2013


On Fri, Apr 26, 2013 at 02:54:03AM -0400, Jeremy Van Cleve wrote:
> Hello,
> 
> I'm finding what might be a conflict between XITS Math and some
> other fonts when I try to use the \underbrace command.  For example,
> 
> %%%
> \documentclass{article}
> 
> \usepackage{unicode-math}
> \setmathfont[Scale=MatchLowercase]{XITS Math}
> \setmathfont[range=\mathit/{latin,Latin}]{Baskerville Italic}
> 
> \begin{document}
> 
> \begin{equation}
>   \underbrace{xxxxxxxx}
> \end{equation}
> 
> \end{document}
> %%%
> 
> gives me "** ERROR ** Invalid glyph index (gid 3743)".  When I
> comment out the XITS Math line, the error goes away.  When I comment
> out the Baskerville line, the error goes away.  Even more strangely,
> when I remove a single "x" from the underbrace, the error also goes
> away.
> 
> Any ideas would be appreciated!

That is a bug. Below certain width, accents like \underbrace are just
one glyph and this was handled correctly, after that we switch to
extensible accents and here there was a bug causing XeTeX to use glyph
from XITS (the font of the accent) but tell PDF they are from
Baskerville (the current font), that is why it disappears when you
comment out Baskerville line (both fonts are the same now) or remove one
“x”.

Should be fixed now, hopefully new binaries will be available for TeX
Live 2013 pretest soon.

Regards,
Khaled


More information about the XeTeX mailing list