[NTG-context] Adjusting Kerning/Spacing between Letter

Wolfgang Schuster schuster.wolfgang at gmail.com
Wed May 25 15:50:12 CEST 2016


> Meer, Hans van der <mailto:H.vanderMeer at uva.nl>
> 25. Mai 2016 um 09:44
>
> I implemented it by redefining \tt:
> \definecharacterkerning[tight][factor=-.075]
> \let\oldtt=\tt
> \def\tt{\setcharacterkerning[tight]\oldtt}
>
> However, I find this a bit of a kludge. But opinions may differ, of 
> course.
> Can this be done in a more general way? For example by setting some 
> font feature?
\definefontfeature[condensed][extend=0.9]

\definefontfamily[normaltt][tt][Latin Modern 
Mono][designsize=auto,features=none]
\definefontfamily[narrowtt][tt][Latin Modern 
Mono][designsize=auto,features=condensed]

\starttext

\start
   \switchtobodyfont[normaltt]
   \input ward
\stop

\start
   \switchtobodyfont[narrowtt]
   \input ward
\stop

\stoptext

Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160525/cff6286b/attachment.html>


More information about the ntg-context mailing list