Re: [NTG-context] Adjusting Kerning/Spacing between Letter

2016-05-27 Thread Hans Hagen

On 5/25/2016 9:44 AM, Meer, Hans van der wrote:



On 02 Jan 2015, at 11:42, Hans Hagen  wrote:

On 1/2/2015 12:56 AM, Malte Stien wrote:

Hi,

I am trying to typeset some strings in {\tt ...}, but they turn out to be 
pretty wide. So, I would like to compress those bits of text a little. Any 
hints on how I could do that locally, that is without adjusting the entire font.


\starttext
   \definecharacterkerning[tight][factor=-.5]

   test {\tt \setcharacterkerning[tight]tight} test

\stoptext

(Btw, there is a narrow monospaced lm font)


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?


no, becasue it is independent of font features (and also less efficient 
that using a narrow tt font)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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
___

Re: [NTG-context] Adjusting Kerning/Spacing between Letter

2016-05-25 Thread Wolfgang Schuster

Meer, Hans van der 
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
___
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
___

Re: [NTG-context] Adjusting Kerning/Spacing between Letter

2016-05-25 Thread Meer, Hans van der

> On 02 Jan 2015, at 11:42, Hans Hagen  wrote:
> 
> On 1/2/2015 12:56 AM, Malte Stien wrote:
>> Hi,
>> 
>> I am trying to typeset some strings in {\tt ...}, but they turn out to be 
>> pretty wide. So, I would like to compress those bits of text a little. Any 
>> hints on how I could do that locally, that is without adjusting the entire 
>> font.
> 
> \starttext
>\definecharacterkerning[tight][factor=-.5]
> 
>test {\tt \setcharacterkerning[tight]tight} test
> 
> \stoptext
> 
> (Btw, there is a narrow monospaced lm font)

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?
 
Hans van der Meer




___
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
___

Re: [NTG-context] Adjusting Kerning/Spacing between Letter

2015-01-02 Thread Hans Hagen

On 1/2/2015 12:56 AM, Malte Stien wrote:

Hi,

I am trying to typeset some strings in {\tt ...}, but they turn out to be 
pretty wide. So, I would like to compress those bits of text a little. Any 
hints on how I could do that locally, that is without adjusting the entire font.


\starttext
\definecharacterkerning[tight][factor=-.5]

test {\tt \setcharacterkerning[tight]tight} test

\stoptext

(Btw, there is a narrow monospaced lm font)


Thank you,
Malte.
___
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
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___

[NTG-context] Adjusting Kerning/Spacing between Letter

2015-01-01 Thread Malte Stien
Hi,

I am trying to typeset some strings in {\tt ...}, but they turn out to be 
pretty wide. So, I would like to compress those bits of text a little. Any 
hints on how I could do that locally, that is without adjusting the entire font.

Thank you,
Malte.
___
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
___