# [XeTeX] A problem with \XeTeXglyph

Stephen Moye stephenmoye at mac.com
Sun Jul 10 20:42:08 CEST 2005

>> \bye
>>
>> But that produces a page of nonsense. I guess I need to know how
>> \XeTeXglyph works.
>>
>
> So it does. Ouch! That's an xdv2pdf bug, and I know when it would
> have been introduced.... quite a while back. But \XeTeXglyph is
> hardly a mainstream function, and nobody has noticed!
>
> Here's a workaround for you:
>
> % - - - - - - - - - - - - - - - - - - - -
> %!TEX TS-program =  xetex
> %!TEX encoding =  UTF-8 Unicode
>
> \font\XXX="Times Roman" at 1pt
> \font\YYY="Times Italic" at 1pt
> \def\FIXFONT{\rlap{\XXX\char32\YYY\char32}}
>
> \font\test="Hoefler Text" at 14pt
>
> \newcount\charcount \charcount0
>
> \raggedright
>
> \loop\number\charcount
> \hbox{\test\XeTeXglyph\charcount\FIXFONT}
>
> \bye
> % - - - - - - - - - - - - - - - - - - - -
>
> (You really don't want to know why this works!!!) The underlying
> bug should get fixed in the next update I do; it's a pretty trivial
> little thing.

Yes, that looks pretty arcane to me. Thanks for the workaround.

SGM

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20050710/29d4cbba/attachment-0001.htm