On Nov 12, 2007 4:12 PM, Jeff Smith wrote:
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. :-)
I've sent this example to the mailing list once, so let's assume that it still works :) slant= and extend= are some features that are specific to XeTeX, not to OpenType fonts themselves, but other features should in the same way, I guess. I need to check once more, but one or more of the features in the first line map to "mapping=tex-text", onum=yes maps to +onum etc. However, I don't know if there's a quick hack to say [features={default,slant=0.25}] or something equal (thus applying only some features on top of an already existing set). \definefontfeature [slantedandextended] % cloned from "default", not all of them are really needed, if any at all [method=node,script=latn,language=dflt,liga=yes,onum=yes,kern=yes, slant=0.25,extend=1.5] \definefontsynonym [myfont] [file:texgyrepagella-regular][features=slantedandextended] \starttext \definedfont[myfont] This is slanted and extended \stoptext Mojca