From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 1139D2B545 for ; Tue, 11 Jun 2024 23:19:15 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C7FA7484A85 for ; Tue, 11 Jun 2024 23:18:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=flump.de 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 ngcSs7NEoyv0 for ; Tue, 11 Jun 2024 23:18:58 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C0009484A9C for ; Tue, 11 Jun 2024 23:18:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 2CC6B4849E5 for ; Tue, 11 Jun 2024 23:18:30 +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 K1nJ0JWAur7e for ; Tue, 11 Jun 2024 23:18:29 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.163.118.210; helo=flump.de; envelope-from=gerion.entrup@flump.de; receiver= Received: from flump.de (flump.de [185.163.118.210]) (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 A47FF4849E4 for ; Tue, 11 Jun 2024 23:18:29 +0200 (CEST) Received: from falbala.localnet (ip4d1692dd.dynamic.kabel-deutschland.de [77.22.146.221]) by flump.de (Postfix) with ESMTPSA id 82FCC109D09A for ; Tue, 11 Jun 2024 23:18:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=flump.de; s=mail; t=1718140707; bh=oVrnAEeYeLgWz/8eis2xCZ4GfwQn0VaPw19mwtpIvNc=; h=From:To:Subject:Date:In-Reply-To:References; b=DNne7GvQv/IriOzH/U0/xb+w3wrO5wfa0fPGnTPqxR+yM8e8TbNndghbFH/6or3k2 jyky82Lvvq215Aw9C/3oWG1eA/NAKvlPPk4UuPg06Rl9oXaCkmnY+8xC0LnB8ucQlU ywO9dGZJ7r/gp1ac++ud5b7z0bPTwVcduMcOt+r4= From: Gerion Entrup To: mailing list for ConTeXt users Date: Tue, 11 Jun 2024 23:18:18 +0200 Message-ID: <6420420.UjTJXf6HLC@falbala> In-Reply-To: <3000b74d-7c5d-c2d9-d43c-ea3ee547aaf4@gmail.com> References: <2640137.3ZeAukHxDK@falbala> <3000b74d-7c5d-c2d9-d43c-ea3ee547aaf4@gmail.com> MIME-Version: 1.0 Message-ID-Hash: RWLNRJRUZNKEJBGADA6EO37REP6CQSIH X-Message-ID-Hash: RWLNRJRUZNKEJBGADA6EO37REP6CQSIH X-MailFrom: gerion.entrup@flump.de 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: Scale content to height of the font, measure font height List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============5084436264260723329==" --===============5084436264260723329== Content-Type: multipart/signed; boundary="nextPart10720874.0AQdONaE2F"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart10720874.0AQdONaE2F Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Gerion Entrup To: mailing list for ConTeXt users Date: Tue, 11 Jun 2024 23:18:18 +0200 Message-ID: <6420420.UjTJXf6HLC@falbala> In-Reply-To: <3000b74d-7c5d-c2d9-d43c-ea3ee547aaf4@gmail.com> MIME-Version: 1.0 Am Montag, 10. Juni 2024, 15:53:19 MESZ schrieb Wolfgang Schuster: > Gerion Entrup schrieb am 10.06.2024 um 13:16: > > Hi, > > > > I'd like to scale something (actually a symbol drawn in TikZ) to the exact > > high of the char 'M'. I found the scale environment for it but struggle to > > measure the correct font height. I found the "definemeasure/measure/measured" > > commands but they define a dimension and are not for doing measurements on > > rendered text. Is there a simple way to get the height a char as a dimension? > > > > MWE: > > ``` > > \starttext > > % Is it possible to replace 1cm with a common expression? > > This is the letter M. \scale[height=1cm]{a} should have the exact same size as > > M. > > > > This should also be true {\tfc with a bigger M. \scale[height=1cm]{a}}. > > \stoptext > > ``` > > \starttext > M\scale[height=\heightofstring{M}]{a}M > \stoptext > > Wolfgang > Thank you all! Added to the wiki: https://wiki.contextgarden.net/Dimensions Gerion --nextPart10720874.0AQdONaE2F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQGzBAABCAAdFiEEM/tVN9WpYYHnPZHxloeAdSYJHeoFAmZovxoACgkQloeAdSYJ HeoNoQv9GmXppPEov2O0jus6oJGe43LHQijagZW4K1h0XMgYxIrl+6+P/qHEYR5O zu6SIQJxgKo2pypPxMemD9ELLxyvxR0e67kCtIV1enBpvB2o4+k5U9lLs0jws0NB 8O9cqVSy1QaTLamMLBKcifIi9XMEda8NNkNe8XbBlpAS4Yb+sv8Wtgqs7f5XnP/9 HtgPhuYyvb9z0u2PZZYLTJHJAeejhF4rt5/Cboez9PNnrvTpo7nokSER0Tq9Iv5z QT8g8Y05RDrArcbR+RRuccJTgCRzhHaQmU6nnyl3jRM6BQJeYimDnvA8JHcsYwb9 igHhKL+majNScRFQ0wqhyPvLc150XCsMAqN7cC2uVuO/s7o6e4em7z0LWlgLT8mC yu1nBrai85MkcgT9Q0xzJUqwlT60zRrwi4B9wzd0sy5AhAGI6nk969zZEmzDG1Rm 0Zft6MhkvzjRVZ++ZixJxRFVkroKbje8tSp68uUf6udg1/RRSdLSpuVIPtYUz/IF A5dNh+HN =VFC+ -----END PGP SIGNATURE----- --nextPart10720874.0AQdONaE2F-- --===============5084436264260723329== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --===============5084436264260723329==--