[XeTeX] Controlling glyph variations

Will Robertson wspr81 at gmail.com
Tue Oct 30 02:11:56 CET 2007


On 10/30/07, Mark Dancer <ae1fric at yahoo.co.uk> wrote:
> with the expectation of getting lists of just the glyphs in
> the base and first variant sets. What I get, however, is
> the full set of glyphs in the font for both sets (for
> Zapfino I get all 1447 glyphs).

The problem is that a stylistic set replaces the glyphs that it
affects and leaves the rest alone -- if the variant gives you a swash
A only (say) you can still type "B" to get the unchanged B from the
base font.

You'd want to loop through character sets (based on unicode chars, I
guess) you were interested in and compare what the XeTeXglyph for each
is for the base font and for the font with the variant selected; if
they're different, that glyph is a variant.

As far as I know, there's no way to do it by using XeTeXglyph alone.
Does this mean that you can't find if there's a variant of a ligature?

Hope this helps,
Will


More information about the XeTeX mailing list