Difference between revisions of "Command/addff"

From Wiki
Jump to navigation Jump to search
Line 20: Line 20:
  
 
== Description ==  
 
== Description ==  
'''This command is deprecated!''' see [[Featuresets]]
+
 
 +
'''This command is deprecated!'''
 +
 
 +
Consider using `\feature[+]{...}` instead. See [[Featuresets]] for details.
  
 
{{cmd|setff|{myfontfeatureset}|}} adds the font features in myfontfeatureset to the currently active features. A font feature set can be defined with {{cmd|definefontfeature|[myfontfeatureset]{...}|}}. The added features remain active until the end of the current scope.
 
{{cmd|setff|{myfontfeatureset}|}} adds the font features in myfontfeatureset to the currently active features. A font feature set can be defined with {{cmd|definefontfeature|[myfontfeatureset]{...}|}}. The added features remain active until the end of the current scope.

Revision as of 07:24, 6 March 2020

\addff

Syntax (autogenerated)

Syntax

\addff{...}
{...} font feature name

Description

This command is deprecated!

Consider using \feature[+]{...} instead. See Featuresets for details.

\setff{myfontfeatureset} adds the font features in myfontfeatureset to the currently active features. A font feature set can be defined with \definefontfeature[myfontfeatureset]{...}. The added features remain active until the end of the current scope.

Example

\definefontfeature[smallcapitals] [smcp=yes]
\definefontfeature[oldstylenumber][onum=yes]

\setupbodyfont[pagella]

\starttext

% kerning is active by default
% but not in the smallcapitals set, so \setff turns it off
{VA abc \setff{smallcapitals} VA abc}

% kerning is active by default
% \addff adds the features in the smallcapitals set; kerning remains on
{VA abc \addff{smallcapitals} VA abc}

{12345 \setff{oldstylenumber} 12345}

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: