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_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 8B0A12453E for ; Mon, 10 Jun 2024 15:55:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 1C002484A97 for ; Mon, 10 Jun 2024 15:54:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmail.com 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 3EGAgJ1VcskX for ; Mon, 10 Jun 2024 15:54:25 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 18ECB484A9B for ; Mon, 10 Jun 2024 15:53:50 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 8D492484920 for ; Mon, 10 Jun 2024 15:53:22 +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 i8iiOBbPuWHh for ; Mon, 10 Jun 2024 15:53:22 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.44; helo=mail-ed1-f44.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 4BA25484810 for ; Mon, 10 Jun 2024 15:53:22 +0200 (CEST) Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-57c681dd692so2867468a12.3 for ; Mon, 10 Jun 2024 06:53:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718027602; x=1718632402; darn=ntg.nl; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject:from:to:cc :subject:date:message-id:reply-to; bh=bXd9PqvfCAnNQHbsP51PQf5PH12p3BgKG+lre/xxMNU=; b=hqsxcyqfAOQpe0nHetGfYk064jUADE7EIwTbjcdzqJcX1mxXx0RfvCa0LCm4MvvLnE 988hQJZYEN3EXVHfWjgNhEQwuzWk9P1+VIYgkHcYJgflggm0b3+TxXSng0//q8lA8bJh fljf4FtjGtQyNNvnZ1M8/M7n1ZWotfzHY6rdMjfnvremwqZo6cJjhSKpvM6lQpKY85Q6 hmMNixXmVvY3WernKjj46hpH/xoHCv9mv3ha1TA6fZ7nXV3VYdWauf+V8qiB5iV1OThr 2DQxR8/O3XygPj04eg2ePk59gj9EV+vpBzY5d1Sdj6O1YJ5vxxl89ENulbuv40/Z5u21 S54A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718027602; x=1718632402; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bXd9PqvfCAnNQHbsP51PQf5PH12p3BgKG+lre/xxMNU=; b=q0pLOUY2VHdkPtoOPKaFy0ICF02UUgK1SGCPd30eXTstH6YMsVBfA+3FGwqlwV2gc3 v7tuQiTCk6l7aiYdgRZpKO9Q0XseaeJksi1pIfgf4fiFQw6loslog/p7p+TQyzLzPE3j rersy5m12SXflWhVyr/IPADmh0SqoqP4N5sQ9sScSKfvOQWOTNvmBNXzvI5YMaf/PYY+ W55rowcc8s/7VtAcYqpRxOok3BfAlDO9eXnlAfWxF7MTGV3rsjpKk7FjAd2Ir7ABDsV8 6979IFe2qmvhXW39LM4cR0WJKAafjMba9H1L9DHnz61HerFrFdQllpCwHcyDosPQnIAX uYIA== X-Gm-Message-State: AOJu0YxgX7DKiDL3kENTOkuzHTXuBX4eLFS+emuGHr4ePrMMUh56Mszg FT/gGsMlMCy7mEniDMAXQrEM+OC3Num9GtEJl6jJTu8nACtxq2b7+fn8gw== X-Google-Smtp-Source: AGHT+IGWUoe06WYWod0JPgQtcDO8ia/KCzrZJNGZw7NJMFho+ETbNft2f/1Ce740SZxOlnXAnOpL9Q== X-Received: by 2002:a50:9b46:0:b0:578:f472:d9d5 with SMTP id 4fb4d7f45d1cf-57c509c914fmr6687824a12.37.1718027601627; Mon, 10 Jun 2024 06:53:21 -0700 (PDT) Received: from ?IPv6:2a02:810d:a8bf:dc10::7141? ([2a02:810d:a8bf:dc10::7141]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57c8d3aec50sm645202a12.37.2024.06.10.06.53.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jun 2024 06:53:21 -0700 (PDT) To: mailing list for ConTeXt users , Gerion Entrup References: <2640137.3ZeAukHxDK@falbala> From: Wolfgang Schuster Message-ID: <3000b74d-7c5d-c2d9-d43c-ea3ee547aaf4@gmail.com> Date: Mon, 10 Jun 2024 15:53:19 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.60 MIME-Version: 1.0 In-Reply-To: <2640137.3ZeAukHxDK@falbala> Content-Language: en-US Message-ID-Hash: G4SSPDQR3HRRMGNEVJGDJOM6XZ2MTOMI X-Message-ID-Hash: G4SSPDQR3HRRMGNEVJGDJOM6XZ2MTOMI X-MailFrom: wolfgang.schuster.lists@gmail.com 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: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________