Am 13.03.10 17:09, schrieb Michael Saunders:
2. What keys and values are available for the third, and what they mean.
Thank you, but by "the first two arguments", I mean 1 and 2 of: \definefontfeature [1][2][3]. For example, in \definefontfeature[smallcaps][smallcaps][script=latn] I don't know what "[smallcaps][smallcaps]" is doing.
Let's start with the normal version \definefontfeature[default][liga=yes,kern=yes,tlig=yes,trep=yes] creates a list with the name 'default' (predefined by context and used by default for all fonts if not specified otherwise) with the opentype features liga (ligature), kern (kerning) and the pseudo tex features tlig (-- -> –, --- -> —) and trep (' -> ’). This feature is now applied to font in a typescript (ConTeXt system map font files to commands, e.g. when you write \bf in your document your get Times New Roman Bold). In the extended version with three arguments you copy the list from the second argument to the new list which name is given in the first argument and you can add new opentype features to the list, e.g. \definefontfeature[mine][default][onum=yes] creates the new list mine which inherits all features from default and adds onum to the list, when the name in the first and second arguments are equal you extend a already created list with additional features. Wolfgang