On 2014-05-04 Wolfgang Schuster wrote:
Am 04.05.2014 um 19:34 schrieb Jan Tosovsky:
In my code I use the following shortcut found somewhere:
\definefontfamily[palatino][rm][Palatino Linotype][features={default, quality}]
Is there any description what that '[features={default, quality}]' option really does?
When you apply features to a font you can set a list of features and all of them will be applied.
In the example below you can see both methods, the first text uses the new featurelist "testfeature" which uses "default" and extends it with "protrusion=quality". The second text applies the two predefined lists "default" and "quality" (which sets "protrusion=quality" and "expansion=quality").
\definefontfeature[testfeature][default][protrusion=quality] ... \startfont[Serif*testfeature] ... \startfont[Serif*default,quality]
Aahh, thanks. So it is the preset name what confused me here... From my POV the 'quality' should be replaced with the more specific label. I believe it will enhance readability the code. I can imagine even 'microtypography' for this kind of preset. Jan