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

\stoptext

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to