> Alan BRASLAU > 13. Februar 2016 um 16:55 > On Sat, 13 Feb 2016 11:47:52 +0100 > > Thank you. > > This is nice, as TeX Gyre is a very good base for most use (unless one > specifically needs/wants a different font). So I wonder if \smallcaps > could be easily made to use this \feature automagically if it exists in > the font? Maybe it does this already: > > \setupbodyfont[pagella] > > \starttext > > Text {\bf Text \feature[+][smallcaps]Text} > > Text {\bf Text \smallcaps Text} > > \stoptext The \smallcaps command only enables the feature in the font but it performs no check. You can use the \doifelsecurrentfonthasfeatur command to check if a feature is present in the currently used font. \def\autosmallcaps {\doifelsecurrentfonthasfeature{smcp}\setsmallcaps\sc} \starttext {Text \autosmallcaps Text} {\it Text \autosmallcaps Text} {\bf Text \autosmallcaps Text} \blank \setupbodyfont[pagella] {Text \autosmallcaps Text} {\it Text \autosmallcaps Text} {\bf Text \autosmallcaps Text} \stoptext Wolfgang