[XeTeX] How to get _third_ stylistic alternate?

Jonathan Kew jonathan_kew at sil.org
Sun Apr 13 01:12:18 CEST 2008


On 12 Apr 2008, at 11:40 pm, Grzegorz Murzynowski wrote:

> Hello,
> currently I'm using XeTeX v. 3.1415926-2.2-0.997 snapshot 639.
> (and it works great!!! :-)
>
> the +salt or fontspec's Style=Alternate feature gives me the first of
> _three_ stylistic alternates of Garamond Premier Pro's & (ampersand).
>
> Is it possible to get the _third_ one? The +ss03 or fontspec's  
> Variant=3
> features have no effect.
>

The 'salt' feature takes a parameter, which is the (zero-based) index  
of which alternate you want.

   \font\x="Garamond Premier Pro" \x \& \par % default
   \font\x="Garamond Premier Pro:+salt" \x \& \par % same as next
   \font\x="Garamond Premier Pro:+salt=0" \x \& \par
   \font\x="Garamond Premier Pro:+salt=1" \x \& \par % second alternate
   \font\x="Garamond Premier Pro:+salt=2" \x \& \par % third alternate


> Fontforge says about this glyph:
>
> 1297
> (0x0511)
> U+????
> ampersand.alt3
> U+0026 AMPERSAND
>
>
> I guess "1297" and 0x0511 is the glyph's number in font—can I  
> access it
> anyhow (of course \char"0511 doesn't do that neither ^^^^0511)?

\XeTeXglyph 1297

But using the 'salt' feature with parameter is more robust; glyph  
numbers are a "last resort".

JK



More information about the XeTeX mailing list