Difference between revisions of "Command/definefontfeature"

From Wiki
Jump to navigation Jump to search
(Created page with "{{Reference |name={{subst:SUBPAGENAME}} |attributes= }} == Syntax == <table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd...")
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
}}
 
}}
  
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>definefontfeature</syntax>
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
Line 63: Line 65:
 
* {{cmd|addff}}
 
* {{cmd|addff}}
 
* {{cmd|definefontfeature}}
 
* {{cmd|definefontfeature}}
 +
* [[Featuresets]]
 +
* [[Fonts in LuaTeX]]
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==
Line 68: Line 72:
 
{{Forum|definefontfeature}}
 
{{Forum|definefontfeature}}
  
[[Category:Commands|definefontfeature]]
+
[[Category:Command/Fonts|definefontfeature]]

Revision as of 14:57, 15 October 2019

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