From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94965 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: smaller size for particular style Date: Sun, 22 May 2016 18:08:02 +0200 Message-ID: <5741D962.80909@gmail.com> References: <4A9C9D66-100F-4ABC-8D1B-78D18C3D336C@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2304325064567446091==" X-Trace: ger.gmane.org 1463933423 25453 80.91.229.3 (22 May 2016 16:10:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 May 2016 16:10:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun May 22 18:10: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 1b4Vvn-0001HF-UB for gctc-ntg-context-518@m.gmane.org; Sun, 22 May 2016 18:08:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 86DCCDB3F; Sun, 22 May 2016 18:08:22 +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 KFxQFCwCqGLf; Sun, 22 May 2016 18:08:21 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id F3118DB40; Sun, 22 May 2016 18:08:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B14A1DB33 for ; Sun, 22 May 2016 18:08:19 +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 yucKGNYTjyLT for ; Sun, 22 May 2016 18:08:19 +0200 (CEST) Original-Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) (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 2ED2BDB23 for ; Sun, 22 May 2016 18:08:09 +0200 (CEST) Original-Received: by mail-wm0-f46.google.com with SMTP id z87so20221702wmh.0 for ; Sun, 22 May 2016 09:08:09 -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=emQePHUyTHWgQJVCBWNcYNtyUgfX47qZOYCIh6GihWc=; b=AkvVIXvhCOWV1uEPhbcOJcKBeb+8MY8mNRfHyva9gxmoar8Z4aBBVsp2cLJB6+v4K6 cbHiZqj6IvLeg4LZfuPhf7HOiJKfsAEX3DKIYwxxNApkxiZvjSV1m4qS16Bo893yXA1I qePZmzZZqFmA93njlcJ4USqbCTRxInwlZtYCzwJ4IbdeKl55ajfCqtlssZwqsxbbZ/7R E74fCl8pHZvmizpOrgKlqSnlWakS4ss4jFPmLHGGklud8/AnS7x8XZgC8uBAUUjihV+0 ucc66BzPg7EzHwJOyo4KYl7b3toz0Af7r2kUUuyHcrKs8n1B5K8AS2BfwhAYDEgklqCs DNzw== 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=emQePHUyTHWgQJVCBWNcYNtyUgfX47qZOYCIh6GihWc=; b=kc8rADtVMf82I39Oigj9gZAJKxf/fFyFJRwmI0sXzMZwVADVVXC4vd7ZVzLF5OWTcN t2pKqKY0gzkj5nlbWtRJpY2Oj/Rw+DPobXFoiFubsIxOYYHzBfAOYSk/2CyZDqtvQRdS SOaRZ7QM9lU9pU0kRSMV3Qrclbz2a14CDGGUjFe4KiRNqFcJNZrF/m7szKdGsPx2aBbb XQlJu8OZwG25P4WCDeGnLOAwgljjQdcrCuzHVy1jWOLQK+/HoYwAtfgRdrzwDZXHLThf frRL0kgohmDsplzZUVw6Zw8vbkRWSy8obBjYwdSMrbov9/CIEONXA3a8myBt6H31G9ag 4u1Q== X-Gm-Message-State: AOPr4FVcoOyH8V38jYDF0gbWBFLVvjeo+1ri6sTIFGisVvSwMuciNB0i32WCtVb+Bq6ORw== X-Received: by 10.194.121.8 with SMTP id lg8mr12498692wjb.16.1463933288515; Sun, 22 May 2016 09:08:08 -0700 (PDT) Original-Received: from keima.localdomain (x2f2cbed.dyn.telefonica.de. [2.242.203.237]) by smtp.gmail.com with ESMTPSA id lm1sm30567254wjc.25.2016.05.22.09.08.05 for (version=TLSv1/SSLv3 cipher=OTHER); Sun, 22 May 2016 09:08:08 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <4A9C9D66-100F-4ABC-8D1B-78D18C3D336C@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:94965 Archived-At: This is a multi-part message in MIME format. --===============2304325064567446091== Content-Type: multipart/alternative; boundary="------------060707020402020703000808" This is a multi-part message in MIME format. --------------060707020402020703000808 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Meer, Hans van der > 22. Mai 2016 um 10:33 > As usual I do a setup for the font with for example: > \setupbodyfont[cambria]. > For most style variants this is fine, but for \tt I find the size too big. > Thus I would like to keep the sizes as setup by the \setupbodyfont for > everything except for \tt: there all variants (like \tt, \ttx, \ttxx) > should have the size as if the bodyfont had been setup with > \setupbodyfont[cambria,small]. > > How to effectuate this? You can define your own typeface where you change the scaling. \definetypeface [hans] [rm] [serif] [cambria] [default] \definetypeface [hans] [tt] [mono] [dejavu] [default] [rscale=0.85] \definetypeface [hans] [mm] [math] [cambria] [default] \setupbodyfont[hans] \starttext a{\tt a} e{\tt e} A{\tt A} \stoptext Wolfgang --------------060707020402020703000808 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
22= .=20 Mai 2016 um 10:33
As usual I do a setup f= or=20 the font with for example: \setupbodyfont[cambria].
For most style=20 variants this is fine, but for \tt I find the size too big.
Thus I=20 would like to keep the sizes as setup by the \setupbodyfont for=20 everything except for \tt: there all variants (like \tt, \ttx, \ttxx)=20 should have the size as if the bodyfont had been setup with=20 \setupbodyfont[cambria,small].

How to effectuate this?
You can define your own typeface where you change the scaling.

\definetypeface [hans] [rm] [serif] [cambria] [default]
\definetypeface [hans] [tt] [mono]=C2=A0 [dejavu]=C2=A0 [default] [rscale= =3D0.85]
\definetypeface [hans] [mm] [math]=C2=A0 [cambria] [default]

\setupbodyfont[hans]

\starttext
a{\tt a} e{\tt e} A{\tt A}
\stoptext

Wolfgang
--------------060707020402020703000808-- --===============2304325064567446091== 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= --===============2304325064567446091==--