[XeTeX] \XeTeX ?

Jonathan Kew jonathan_kew at sil.org
Fri May 5 13:09:32 CEST 2006

On 5 May 2006, at 10:01 am, Wlodek Bzyl wrote:

>     Is there a way to check the character existence
>     from within XeTeX?

You can use \XeTeXcharglyph"018E to get the glyph ID of character U 
+018E in the current font; if the character isn't supported, this  
will return 0.

So you could use something along the lines of

     \else % rotation is about the origin, so we need to adjust  
       \setbox0=\hbox{E}\dimen0=\ht0 \advance\dimen0 by \dp0
   }\kern-.1667em \TeX}%
   \dp0=0pt \ht0=0pt \box0 }

which uses "018E if available, otherwise it uses \reflectbox for  
unslanted fonts, and \rotatebox for slanted.


More information about the XeTeX mailing list