2007/11/12, Jeff Smith
On Nov 10, 2007 9:23 PM, Mojca Miklavec
wrote: You can say (features=default is optional) \definefontsynonym[SomeFont][name:Font Name][features=default] which means that XeTeX will call the font \font\somefont="FontName;mapping=tex-text,..." (tex-text is implied by features=default)
Is [features=default] the place where we can access OpenType features? Let's say I have an OpenType font with several number styles (regular, proportional, etc.). Is it possible to use them? I've always wanted to ask this and be sure. Now seems the good time. :-)
You can define your own features sets with \definefontfeature and use this set later with "features=my feature set", "default" is only one of ConTeXt's predefined feature sets but you define your own with every option you need. A definition looks like: \definefontfeature [my features] [a list of OpenType features] You can enable features in the list with "feature=yes" and diable it with "feature=no". ConTeXt's three predefined features sets are - default (ligaures and kerning, plus tex-text in XeTeX) - smallcaps (default plus smallcaps) - oldstyle (default plus oldstyle numerals) Wolfgang