[XeTeX] protrusion for small caps

Robert w.m.l at gmx.net
Wed May 19 20:47:22 CEST 2010


On 18.05.10 10:55, Jonathan Kew wrote:
>    \font\f="MyFont" at 10pt \f
>    \newcount\n
>    \loop \noindent \number\n : \XeTeXglyph\n\ = \XeTeXglyphname\f\n \par
>      \advance\n by 1 \ifnum\n<\XeTeXcountglyphs\f \repeat

Thanks, this may be helpful (and I've learned two new primitives...)

Now I seem to have stumbled upon a minor bug: protrusion doesn't work 
for glyphs inserted with \XeTeXglyph:

\font\x ="Charis SIL" \x
\parindent0pt
\parfillskip0pt
\XeTeXprotrudechars2
\lpcode\x /w = 500 %  = slot 90

abc\par
wbc\par
\char`wbc\par
\XeTeXglyph90 bc\par
abc

\bye

Regards,
-- 
  Robert



More information about the XeTeX mailing list