Command/definefontfeature

From Wiki
< Command
Revision as of 14:57, 15 October 2019 by Usonianhorizon (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

\definefontfeature

Syntax (autogenerated)

\definefontfeature[...][...][...=...,...]
[...]name
[...]name
languagename
scriptname auto
modenode base auto none
ligayes no
kernyes no
extrakernsyes no
tligyes no
trepyes no
missingyes no
dummiesyes no
analyzeyes no
unicodingyes no
expansionname
protrusionname
nostackmathyes no
realdimensionsyes no
itlcyes no
textitalicsyes no
mathitalicsyes no
slantnumber
extendnumber
dimensionsnumber strut
boundingboxyes no background frame empty color
composeyes no
char-ligaturesyes no
compat-ligaturesyes no
goodiesfile
extrafeaturesyes no
featuresetname
colorshemename
postprocessorname
mathdimensionsname
keepligaturesyes no auto
devanagariyes no
featuresyes no
tcomyes no
anumyes no
mathsizeyes no
decomposehangulyes no
mathalternativesyes no
mathgapsyes no
checkmarksyes no
uppercasingyes no
lowercasingyes no
mathnolimitsmodenumber
blockligaturesyes no
metapostname
nameyes 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
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: