Open main menu

Difference between revisions of "Command/addff"

(add deprecation warning)
 
(6 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
}}
 
}}
  
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>addff</syntax>
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
Line 18: Line 20:
  
 
== Description ==  
 
== Description ==  
'''This command is deprecated!''' see [[Featuresets]]
+
 
 +
'''This command is deprecated!'''
 +
 
 +
Consider using {{cmd|feature|[+]{...}|}} instead; see [[Fonts/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.
Line 47: Line 52:
 
* {{cmd|addff}}
 
* {{cmd|addff}}
 
* {{cmd|definefontfeature}}
 
* {{cmd|definefontfeature}}
* [[Featuresets]]
+
* [[Fonts/Featuresets]]
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==
Line 54: Line 59:
  
 
[[Category:Command/Fonts|addff]]
 
[[Category:Command/Fonts|addff]]
 +
[[Category:Old_Content]]

Latest revision as of 19:31, 17 May 2024

\addff

Syntax (autogenerated)

Syntax

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

Description

This command is deprecated!

Consider using \feature[+]{...} instead; see Fonts/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: