On 25-3-2010 15:28, Wolfgang Schuster wrote:
Am 25.03.10 15:09, schrieb Hans Hagen:
1. I understand that ConTeXt can do margin kerning and font expansion, but is there a way to setup a configuration file for each font set. Like the mt-foo.cfg file for font family foo when using microtype in latex. you can define additional sets indeed an dpass the defined set as value to the protrusion and expansion features The MKIV interface (Lua only) is not very user friendly but since Steffen Wolfrum is the only one who use his own verctors this hadn't been a problem in the past. 2. Is there a way to do letterspace in ConTeXt. I understand there is a command called \stretched. But what I want is the feature like the tracking option in microtype package, which can automatically letterspace all small caps. Moreover is there a way to define new sets of fonts for letterspace. For example I defined a new font shape called \capshape, which use case tags of OpenType, and I want to use letterspace this shape with certain amount all the time because I am not satisfied with the space provided by the cpsp tag of OpenType. i have no clue what microtype does (nor time to look into it) but you can just define a command that switches the font and enables intercharacter spacing, something
\definecharacterkerning[mykerning]
\setupcharacterkerning[mykerning][\c!factor=.125]
\def\MySc {\groupedcommand {\sc\setcharacterkerning[mykerning]} {}} Who about something like (pseudocode)
\definecharacterkerning[letterspace]
\def\letterspace {\bgroup \dosingleempty\doletterspace}
\def\doletterspace[#1]#2% use \groupedcommand? {\iffirstargument \setupcharacterkerning[letterspace][factor=\ctxlua{tex.sprint(#1/1000)}]}% \fi \setcharacterkerning[letterspace]#2% \egroup}
\starttext
text \letterspace{text} text \letterspace[200]{text} text
looks ok, apart from the name ... we don't space letters but characters (or glyphs) so maybe \kerncharacters or so Hans -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------