Menu

#174 AAT fonts: \XeTeXfeaturename and \XeTeXselectorname always empty

Future
open
nobody
None
5
2021-06-08
2020-06-03
Robert
No

Querying feature and selector names of AAT fonts no longer works, the respective primitives only yield empty strings. The following example, run with xetex 0.999992 (TL20) or 0.999991 (TL19), fails to select the "Rare Ligatures" for font \2, even though it is still possible to select them by adding the feature/selector strings manually (font \3). With xetex 0.99999 (TL18) the example works as expected.

\font\1="Hoefler Text/AAT" 
\def\aatfeatures{\XeTeXfeaturename\1 1 =\XeTeXselectorname\1 1 4} % Ligatures=Rare
\aatfeatures

\font\2="Hoefler Text/AAT:\aatfeatures"
\2 st 

\def\aatfeatures{Ligatures=Rare Ligatures} % language-dependent
\font\3="Hoefler Text/AAT:\aatfeatures"
\3 st 
\bye

Discussion

  • Anonymous

    Anonymous - 2021-06-08

    I believe that this is because the XeTeX_feature_name #define in the C code has gotten out of sync with the value of XeTeX_feature_name_code in the WEB. Cf

    https://github.com/tectonic-typesetting/tectonic/issues/714

     
  • Peter Williams

    Peter Williams - 2021-06-08

    Actually maybe it's fairer to say that the #defines expect the cur_chr to be offset by XETEX_INT, but that doesn't happen in conv_toks in this case.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB