[NTG-context] check whether font feature is being used

Pablo Rodriguez oinos at gmx.es
Thu May 12 17:59:32 CEST 2022


Dear list,

I have the following sample:

  \setupbodyfont[pagella]
  \definefontfeature[asc]
    [c2sc=yes, smcp=yes]
  \starttext
  \startTEXpage[offset=1em]
  text
  \doifelsecurrentfonthasfeature{asc}
    {yes}{no}
  \doifelsefontfeature{asc}
    {yes}{no}
  \doifunknownfontfeature{asc}
    {yes}{no}\\
  \feature[+][asc]
  text
  \doifelsecurrentfonthasfeature{asc}
    {yes}{no}
  \doifelsefontfeature{asc}
    {yes}{no}
  \doifunknownfontfeature{asc}
    {yes}{no}
  \stopTEXpage
  \stoptext

Sorry, but which is the right way to check when the font feature is
being deployed?

Many thanks for your help,

Pablo


More information about the ntg-context mailing list