From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3285 invoked from network); 12 Aug 2023 15:36:06 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 12 Aug 2023 15:36:06 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id CEFFE4825AF for ; Sat, 12 Aug 2023 17:34:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4hjDKv8nzzb9 for ; Sat, 12 Aug 2023 17:34:56 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 151C3482978 for ; Sat, 12 Aug 2023 17:34:28 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 8B9D0482546 for ; Sat, 12 Aug 2023 17:34:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id az87lEsAttaO for ; Sat, 12 Aug 2023 17:34:07 +0200 (CEST) Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 38964482544 for ; Sat, 12 Aug 2023 17:34:07 +0200 (CEST) X-KPN-MessageId: 3cc10520-3925-11ee-a2b4-005056992ed3 Received: from smtp.kpnmail.nl (unknown [10.31.155.8]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id 3cc10520-3925-11ee-a2b4-005056992ed3; Sat, 12 Aug 2023 17:30:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=xs4all01; h=content-type:from:to:subject:mime-version:date:message-id; bh=xx40I3F+eTZ3fdiySWX/BVg3kqJvQBSvdw/LG80FF+4=; b=PRs3BVLoMTopC31esBmMM0gvcSBPT/jQ81EHfmxPpCb29DKVAndTKlDpnpcBOTUGjfbiBt8J8Qfis de4/zESXqiPfdXlj3+OnpeM7X3Yp2BwVpBBMb8+qrVoLGO0oN2OdbtYXPHrUD+4z4kzB4XC+ejF2Xf GLPtA75H+gAN9YL6Q3xPg2LasrPJ0pGhJGdhVnJ5LjZYHhIlRFQyarVJFjCFtIxyjL9uBA0G9t8Jlw rKrikmxj9yKi1DxzwDimgROAbhuTbfB7N33WNhNAOmqSBj6W9b+ToR/ooMHuTch+4tBbv77h4tv5lL SyaLZbXs1lT6L+nLwQHf8mF3ZX7nl2g== X-KPN-MID: 33|d+OQrBjMsBNKBqVsaz/lZoLF40K171RGqwKGdEElupuQ11/dO21PN+kGtvS79Ob BQniutxcT66WVFvI+FZ6emcDeqbIjFbv4BUdrkepw2Wc= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|ddAGUE9N5GpBFY1QZd+Q1VIZkw4NgjBtM9vAJAAxJYZKTcaI+Ex6WDQd0IlWywE f7FLp+YvclHaDHAMFM83TyA== X-Originating-IP: 213.125.29.162 Received: from [10.100.1.105] (d57d1da2.static.ziggozakelijk.nl [213.125.29.162]) by smtp.xs4all.nl (Halon) with ESMTPSA id ac95be04-3925-11ee-8747-00505699d6e5; Sat, 12 Aug 2023 17:34:06 +0200 (CEST) Message-ID: Date: Sat, 12 Aug 2023 17:34:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Content-Language: en-US To: ntg-context@ntg.nl References: <894c91b8-c97f-44a0-a6dd-ae6e7a342060@Spark> From: Hans Hagen In-Reply-To: <894c91b8-c97f-44a0-a6dd-ae6e7a342060@Spark> Message-ID-Hash: FJBM45VVR3MZKRDFWKAMIKQRSCQGKGYP X-Message-ID-Hash: FJBM45VVR3MZKRDFWKAMIKQRSCQGKGYP X-MailFrom: j.hagen@xs4all.nl X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Scaling characters without font switching in CLD List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit On 8/12/2023 4:03 PM, Hamid,Idris wrote: > \tfx causes a switch to computer modern. Indeed. Something I need to discuss with Wolfgang as double checking is needed before I patch. > But what if we want to scale independently of font switching? There is no need to go lua here (esp when you have not done vf magick before and i'm not going to debug code that i have little clue what it's about to do). - we cheat here and yuse glyph scaled (I have to provide a relative to current x/y scaling, don't use \glyphscale as that one is used by context itself - we use the style variant so that it adapts - you have to replace "Serif" with "YourFont" and map that one onto a file (YourFont YourFontBold etc) - more about these box manipulations in the low level manual \startsetups glyph:iTee \dontleavehmode\hpack\bgroup \setbox\scratchbox \ruledhbox \bgroup \glyphxscale 400 \glyphyscale 400 \getglyphstyled{Serif}{T}% choose a font here \egroup \scratchheight 2.75\ht\scratchbox \boxyoffset \scratchbox\scratchheight \boxorientation\scratchbox\plustwo \ht \scratchbox\scratchheight \box\scratchbox \egroup \stopsetups \definesymbol [iTee] [\directsetup{glyph:iTee}] \startTEXpage [offset=1ts,width=2cm] \ruledhbox {\tfx T \symbol{iTee}} \par \ruledhbox {T \symbol{iTee}} \par \ruledhbox {\tfa T \symbol{iTee}} \par \ruledhbox {\bfd T \symbol{iTee}} \stopTEXpage Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________