Open main menu

Command/definefontfeature

< Command
Revision as of 14:51, 28 November 2012 by Esteis (talk | contribs) (Created page with "{{Reference |name={{subst:SUBPAGENAME}} |attributes= }} == Syntax == <table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

\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: