[XeTeX] "Hoefler Text" XeLaTeX interface

Will Robertson will at guerilla.net.au
Tue Oct 5 06:19:09 CEST 2004


On 4 Oct 2004, at 8:46 PM, Jonathan Kew wrote:

> Features and selectors do have numeric IDs (which are supposedly 
> standard, for registered features); there's a feature registry 
> somewhere on Apple's site (see http://developer.apple.com/fonts). The 
> AAT-info.tex file uses \XeTeXfeaturename and \XeTeXselectorname to 
> display the names for these, but you could ask it to display the 
> numbers as well. Just add something to the loop that prints the 
> features:
> ---
> \ifnum\nf>0
>   \loop
>     \fc=\XeTeXfeaturecode\testfont\f
>     \noindent \XeTeXfeaturename\testfont\fc \ [\number\fc] % output ID 
> as well as name
>     \endgraf
>     \ns=\XeTeXcountselectors\testfont\fc
>     {
>       \loop
>       \sc=\XeTeXselectorcode\testfont\fc\s
>       \textindent{%
>         \ifnum\XeTeXisexclusivefeature\testfont\fc>0
>           \ifnum\XeTeXisdefaultselector\testfont\fc\sc>0 \radioOn 
> \else \radioOff \fi
>         \else
>           \ifnum\XeTeXisdefaultselector\testfont\fc\sc>0 \checkOn 
> \else \checkOff \fi
>         \fi
>       }\XeTeXselectorname\testfont\fc\sc \ [\number\fc] % output ID as 
> well as name

That should be ...[\number\sc] on that last line.

W



More information about the XeTeX mailing list