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 1DFAA27123 for ; Mon, 10 Jun 2024 13:17:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 952754845F1 for ; Mon, 10 Jun 2024 13:17:15 +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 xb-wyIKfEc6W for ; Mon, 10 Jun 2024 13:17:15 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id D6FC94844A1 for ; Mon, 10 Jun 2024 13:16:54 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id F3A844843C6 for ; Mon, 10 Jun 2024 13:16:41 +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 XLhvVBIHbfGb for ; Mon, 10 Jun 2024 13:16:41 +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 8AD414843BB for ; Mon, 10 Jun 2024 13:16:41 +0200 (CEST) Received: from falbala.localnet (ip4d1692dd.dynamic.kabel-deutschland.de [77.22.146.221]) by flump.de (Postfix) with ESMTPSA id 25BF21092C38 for ; Mon, 10 Jun 2024 13:16:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=flump.de; s=mail; t=1718018201; bh=LpkoUrRKwSYpymQOBCIDRNR4lTWp5AzDWpC5rhjJmwc=; h=From:To:Subject:Date; b=ork3Z3OdB1sk/THAUY5VLnBjONxZ74dezq5iiD6MaNwJaZvc5JPw5ABgnfiRlrz35 VUnZ2Gju1OvNazTZbRi9XYRvuVlSCWkMQCmoF1d+F4Vhj19bK8ylNAjTF2mU2Kf6xU S/Ycvl20pK6ekH5nPgI3G+LtaNm8fhgkldigyuR4= From: Gerion Entrup To: ntg-context@ntg.nl Date: Mon, 10 Jun 2024 13:16:37 +0200 Message-ID: <2640137.3ZeAukHxDK@falbala> MIME-Version: 1.0 Message-ID-Hash: CXIKOBBD5DPQKMN337AXZUXP6I5OLZ46 X-Message-ID-Hash: CXIKOBBD5DPQKMN337AXZUXP6I5OLZ46 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] 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="===============2056577547608210459==" --===============2056577547608210459== Content-Type: multipart/signed; boundary="nextPart3427600.687JKscXgg"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart3427600.687JKscXgg Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Gerion Entrup To: ntg-context@ntg.nl Subject: Scale content to height of the font, measure font height Date: Mon, 10 Jun 2024 13:16:37 +0200 Message-ID: <2640137.3ZeAukHxDK@falbala> MIME-Version: 1.0 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 ``` Best Gerion --nextPart3427600.687JKscXgg 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/tVN9WpYYHnPZHxloeAdSYJHeoFAmZm4JUACgkQloeAdSYJ Hep9sQwAnC7GYzHGkYshwarcoGKnnkYQG1zh2FBOcY1AGkuTNd3sYrab4SGF4Ike ikcDuZ86AlYLJH9VeqzMm7pTTq+g+UMR64/7iKGBKfMDrpBQ82iQ/qtXsjf5Ywp5 ep/7rt0mx+8Ydjt742gvJCfenn3O66c4nEKbHVPJxRZyI8yvC5AhckK5rcCi9/CU WjfFSXEWC0yY9iD/dz4QuHmFJXIJ1jVaPMHZExJHhqGG9vUvOJEHeOYuaplM8A9L Eaz99lIwTm/qaI1EVek24LfRDSNn6lICfH/OsFu+kgPB07gUwBv8d0vxgZ1AeUWz C8C3F1LtPO38BRswabaBQJ7nuOezxKDTIoWH7eCONdUxkh1yRcrbWdY+ab3y5+Vo sapikulnbUVPl7d5J8v7mxnf96J6jOyoa/3jd78XBlQu53EwHMhxK/d8Qr47sffV oklEl5gGdj7zdWF8MXTaLsR3bMHdcVJKYIsg91lL3VCvS13utYRUbwBQfgPSxpyZ yCKKwdFj =pQup -----END PGP SIGNATURE----- --nextPart3427600.687JKscXgg-- --===============2056577547608210459== 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 ___________________________________________________________________________________ --===============2056577547608210459==--