On Mon, Jul 21, 2008 at 10:05 AM, Ulrich Dirr wrote:
Hi,
I've adapted the complete luatex/markiv typescript example at http://wiki.contextgarden.net/Mark_IV#Opentype_features for FF Kievit Pro I. It works quiet nice out of the box (aaah, nomore fiddling with font installation!).
\starttypescript [sans] [kievit]
\definefontsynonym [KievitProRegular] [name:KievitPro-Regular] [features=default] \definefontsynonym [KievitProMedium] [name:KievitPro-Medium] [features=default] \definefontsynonym [KievitProExtraBold] [name:KievitPro-ExtraBold] [features=default]
\definefontsynonym [KievitProItalic] [name:KievitPro-Italic] [features=default] \definefontsynonym [KievitProMediumItalic] [name:KievitPro-MediumItalic] [features=default] \definefontsynonym [KievitProExtraBoldItalic] [name:KievitPro-ExtraBoldItalic] [features=default]
\stoptypescript
\starttypescript [sans] [kievit]
\definefontsynonym [Sans] [KievitProRegular] [features=default] \definefontsynonym [SansItalic] [KievitProItalic] [features=default] \definefontsynonym [SansBold] [KievitProMedium] [features=default] \definefontsynonym [SansSlanted] [SansItalic] [features=default] \definefontsynonym [SansBoldSlanted] [SansBoldItalic] [features=default] \definefontsynonym [SansCaps] [Sans] [features=smallcaps]
\stoptypescript
\definetypeface[kievit][rm][sans][kievit][default] \definetypeface[kievit][ss][sans][kievit][default] \definetypeface[kievit][tt][mono][modern] [default][rscale=1.12] \definetypeface[kievit][mm][math][iwona] [default][rscale=1.02]
\setupbodyfont[kievit,ss,10pt]
Now \bf \it works perfectly well but \sc doesn't. Do I need some extra definition?
I'm only guessing without trying: You have \definefontsynonym [KievitProRegular] [name:KievitPro-Regular] [features=default] \definefontsynonym [Sans] [KievitProRegular] [features=default] \definefontsynonym [SansCaps] [Sans] [features=smallcaps] I suspect that "features=default" is taking precedence (ask Hans once he's back about the phylosophy behind this mechanism). I don't say that it should be that way, but for the moment try to define a new font instance with "features=smallcaps" from the beginning. Something like: \definefontsynonym [KievitProRegularCaps] [name:KievitPro-Regular] [features=smallcaps] \definefontsynonym [SansCaps] [KievitProRegularCaps] You also have \addfontfeature available where you can enable small caps. To be honest, \sc could work without so much trickery in XeTeX and LuaTeX (it could simply add +smcp to the current font), but definition of \sc has not been adapted to work like that yet. Mojca