[XeTeX] \XeTeXglyphindex: just a short note

Jonathan Kew jonathan_kew at sil.org
Sun Jun 11 18:54:57 CEST 2006


On 11 Jun 2006, at 12:39 pm, Mojca Miklavec wrote:

> \def\getglyph#1{\XeTeXglyph\XeTeXglyphindex "#1"}
> \font\A='Antykwa Torunska' \A
>
> Thank you, Jonathan, I \getglyph{heart} this new feature!
>
> \bye

\def\getglyph#1{\count255=\XeTeXglyphindex "#1"%
   \ifnum\count255>0 \XeTeXglyph\count255 \else [#1]\fi}
\font\A='Antykwa Torunska' \A

\getglyph{smile} You’re welcome!

\bye



More information about the XeTeX mailing list