Command/definefontfeature

Unofficial ConTeXt Wiki mirror

Last modified: 2025-07-04

Syntax (autogenerated)

\definefontfeature[...][...][...=...,...]
[...] name
[...] name
language name
script name auto
mode node base auto none
liga yes no
kern yes no
extrakerns yes no
tlig yes no
trep yes no
missing yes no
dummies yes no
analyze yes no
unicoding yes no
expansion name
protrusion name
nostackmath yes no
realdimensions yes no
itlc yes no
textitalics yes no
mathitalics yes no
slant number
extend number
dimensions number strut
boundingbox yes no background frame empty color
compose yes no
char-ligatures yes no
compat-ligatures yes no
goodies file
extrafeatures yes no
featureset name
colorsheme name
postprocessor name
mathdimensions name
keepligatures yes no auto
devanagari yes no
features yes no
tcom yes no
anum yes no
mathsize yes no
decomposehangul yes no
mathalternatives yes no
mathgaps yes no
checkmarks yes no
uppercasing yes no
lowercasing yes no
mathnolimitsmode number
blockligatures yes no
metapost name
name yes no

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:

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

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: