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:
-
\definefontfeature[default][default][onum=yes] \setupbodyfont[schola,8pt] \starttext \startTEXpage[offset=2.5em] 1234567890 \stopTEXpage \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 \startTEXpage[offset=2.5em] 1234567890 {\addff{oldstyle}1234567890} \stopTEXpage \stoptext
-
See also
- \setff
- \addff
- \definefontfeature
- Characters words and fonts/Fonts features - OpenType features - Ligatures
- Characters words and fonts/Fonts in LuaTeX
Help from ConTeXt-Mailinglist/Forum
All issues with: