Command/definefontfeature

From ConTeXt wiki
< Command
Revision as of 11:30, 30 August 2015 by Esteis (talk | contribs)

\definefontfeature

Syntax

\definefontfeature[..][]
\definefontfeature[...][...][...=...]
[...] name of new featureset
[...] name of featureset to inherit from
[...=...] feature=yes,feature=no,...

Description

Define a font feature set as a collection of OTF font features turned on or off. A font feature set can be activated with \setff or \addff. To modify an existing font feature set, use \definefontfeature; that way, the OTF features you (in)activate are added to the ones already in the set.

Example

Add onum=yes to the default feature set:

\definefontfeature[default][default][onum=yes]

\setupbodyfont[schola,8pt]

\starttext
1234567890
\stoptext

Make a new feature set that sets onum=yes, and activate it next to the active set with \addff:

\setupbodyfont[schola,8pt]

\definefontfeature[oldstyle][onum=yes]

\starttext
1234567890 {\addff{oldstyle}1234567890}
\stoptext

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: