From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95000 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Adjusting Kerning/Spacing between Letter Date: Wed, 25 May 2016 15:50:12 +0200 Message-ID: <5745AD94.6060407@gmail.com> References: <54A67612.8070004@wxs.nl> <2A06F2BE-F23C-4E06-8663-73941DE61417@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5258885259552616455==" X-Trace: ger.gmane.org 1464184583 6372 80.91.229.3 (25 May 2016 13:56:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 May 2016 13:56:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 25 15:56:09 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b5ZI9-0002sc-HP for gctc-ntg-context-518@m.gmane.org; Wed, 25 May 2016 15:56:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 40663E0F1; Wed, 25 May 2016 15:55:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i-yOIJjfWP49; Wed, 25 May 2016 15:55:56 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 7EED2E0F0; Wed, 25 May 2016 15:55:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 01A92E0F0 for ; Wed, 25 May 2016 15:55:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2DnSzFHcQfEf for ; Wed, 25 May 2016 15:55:53 +0200 (CEST) Original-Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 39777E0EA for ; Wed, 25 May 2016 15:55:43 +0200 (CEST) Original-Received: by mail-wm0-f52.google.com with SMTP id n129so63948858wmn.1 for ; Wed, 25 May 2016 06:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=Wx3g4uvtjsevj86hfB/vNudofVFHvC0Zwga5M7Jnj1I=; b=nzK5AYPtysFdZOOFeCz2ysy+L/0yf5+4W2HmmR37vbFL4lycqnLRPAERMINiyd9lxD Mkvcq4U3AvHW0f7/7dswlE6TYWCZUt6pjB9QW1GgMuaMJJBreEWmaamPCM03Q6hrYjje YvZNYhy6m/lOsXO0YdwurzViWstCXjpRBwNOVZEdUuHDsSCm73r3WRI1GDVtji6oq/zZ CJ7JXnewixxq3d5bh9w26h9ig0otysHjYB+LduV3qNZTcaZtnsfSonHU2R6L/+v8Djp6 qaPBWIEvtolp8thwDT2ifocNYsMjbn7r2BDfbjU1FC3xGK4diUNeoXbXjz5n5qp/eTMQ JgYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=Wx3g4uvtjsevj86hfB/vNudofVFHvC0Zwga5M7Jnj1I=; b=IbsV3tpdoBp2sSxRtMIOqP7UIchfkk3gRYkyTw9tHw5vz77xdTSyMDCCRp20lXurxi 4Nt953nVAMpeCR6bje4jNMd1QIZLlhVTqthm69K/3A3eTPcZviy5mSl1RbC2PdtcRkKy yKdjJ6k9gR70uAqyggExp/SkU+2gWceFyixAKfiQNrk15s0p6L9yvI2ZehYLRSmVvWsH JYJhdm0outedo05HINBmCdrGPlOhph7wXGwJ0WOzAzQrBMUDKzQrYi7ntDCl+qBEJ4mq 8C/Ac+O2r4ruZUSawrUt2AlZBMoeVYBYWeui2ARIpPyokDlO3v/Xavdd5pK//CpIm548 cnwQ== X-Gm-Message-State: ALyK8tLLFvQt0rU9TXig/bqlk68cxgdz6PRz13sR6aUgj6ZOrCdNZX2VxPsnKgXO4yA1xw== X-Received: by 10.194.109.65 with SMTP id hq1mr3955144wjb.45.1464184220152; Wed, 25 May 2016 06:50:20 -0700 (PDT) Original-Received: from keima.localdomain (x2f2df50.dyn.telefonica.de. [2.242.223.80]) by smtp.gmail.com with ESMTPSA id kq9sm8930041wjc.26.2016.05.25.06.50.16 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 May 2016 06:50:19 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <2A06F2BE-F23C-4E06-8663-73941DE61417@uva.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:95000 Archived-At: This is a multi-part message in MIME format. --===============5258885259552616455== Content-Type: multipart/alternative; boundary="------------080803030303030508020100" This is a multi-part message in MIME format. --------------080803030303030508020100 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > 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 --------------080803030303030508020100 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
25= .=20 Mai 2016 um 09:44

I implemente= d=20 it by redefining \tt:
\definecharacterkerning[tight][factor=3D-.075= ]
\let\oldtt=3D\tt
\def\tt{\setcharacterkerning[tight]\oldtt}
However, I find this a bit of a kludge. But opinions may differ, of course.
Ca= n this be done in a more general way? For example by setting some font=20 feature?
\definefontfeature[condensed][extend=3D0.9]

\definefontfamily[normaltt][tt][Latin Modern=20 Mono][designsize=3Dauto,features=3Dnone]
\definefontfamily[narrowtt][tt][Latin Modern=20 Mono][designsize=3Dauto,features=3Dcondensed]

\starttext

\start
=C2=A0 \switchtobodyfont[normaltt]
=C2=A0 \input ward
\stop

\start
=C2=A0 \switchtobodyfont[narrowtt]
=C2=A0 \input ward
\stop

\stoptext

Wolfgang
--------------080803030303030508020100-- --===============5258885259552616455== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============5258885259552616455==--