[XeTeX] Controlling glyph variations

Will Robertson wspr81 at gmail.com
Tue Oct 30 14:10:50 CET 2007


On 30/10/2007, at 22:12 , Mark Dancer wrote:

> Just to clarify what I'm getting when I go through the
> loop:
>
>>>     \newcount\nglyph
>>>     \newcount\glyf \newcount\step
>>>     \nglyph =\XeTeXcountglyphs\varfont
>>>     \noindent{\title Zapfino First Variant Glyph Set
>>> contains \number\nglyph\ glyphs}
>>>     \nobreak\medskip
>>>     \noindent
>>>         \loop \advance\glyf by 1
>>>             \ifnum\glyf<\nglyph
>>>                 {\varfont\XeTeXglyph\glyf }
>>>         \repeat
>
> gives me every variant of every character (including the
> base glyph). In the middle of the document I get ... d d d
> d d d d d d ..., where each d looks different (there being
> eight variants glyphs for d).

Hmm, sorry, I replied at work where i couldn't compile your code. I  
guess \XeTeXglyph refers more to the font than to the feature  
selected, so looping through every xetexglyph in a font will indeed  
give you every variation.

> Thanks for pointing me in the right direction.

We'll see! I'm interested to find out what your results are. I'd  
consider adding this sort of functionality to fontspec at some stage...

Will

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2415 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20071030/2702b28f/attachment.bin 


More information about the XeTeX mailing list