[XeTeX] How to get _third_ stylistic alternate?
Will Robertson
wspr81 at gmail.com
Sun Apr 13 15:10:00 CEST 2008
On 13/04/2008, at 9:02 AM, Grzegorz Murzynowski wrote:
> Jonathan Kew pisze:
>> 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
> :-))))
> “Ich Dummkopf!” (Me fool!) I was trying "+salt=3".
I don't think I knew that!
At the moment this would logically fit into the "Alternate=x" feature
of fontspec since "Variant" already covers the "+ss0x"-type features.
But if anyone has a better idea let me know :)
Jonathan, is it possible to query how many 'salt' features exist in
the font?
All the best,
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/20080413/a5e64b7b/attachment.bin
More information about the XeTeX
mailing list