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

Jeremy Van Cleve jeremy.vancleve at gmail.com
Fri Apr 26 23:45:15 CEST 2013


Great, thanks for fixing this Khaled!

On 4/26/13 5:15 AM, Khaled Hosny wrote:
> 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
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>    http://tug.org/mailman/listinfo/xetex



More information about the XeTeX mailing list