From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115120 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Nedeljkovic via ntg-context Newsgroups: gmane.comp.tex.context Subject: Changing font and font size inside textex Date: Mon, 30 May 2022 20:46:13 +0200 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2416824706247068091==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2877"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Nedeljkovic To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 30 20:47:03 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nvkPv-0000Wb-69 for gctc-ntg-context-518@m.gmane-mx.org; Mon, 30 May 2022 20:47:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8DC6F28A175; Mon, 30 May 2022 20:46:31 +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 jPgv7BMaV74N; Mon, 30 May 2022 20:46:29 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 25E9D28A117; Mon, 30 May 2022 20:46:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A951228A0D4 for ; Mon, 30 May 2022 20:46:27 +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 tRilxBoH-_R3 for ; Mon, 30 May 2022 20:46:26 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.219.51; helo=mail-qv1-f51.google.com; envelope-from=tsar.srb@gmail.com; receiver= Original-Received: from mail-qv1-f51.google.com (mail-qv1-f51.google.com [209.85.219.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id B46A128A0D3 for ; Mon, 30 May 2022 20:46:26 +0200 (CEST) Original-Received: by mail-qv1-f51.google.com with SMTP id r1so10495790qvz.8 for ; Mon, 30 May 2022 11:46:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=fJ3+jpEcDhzSLlZXndAeGY4WzWLr3U6r0AYRlc68sng=; b=k3XoztZjAAXWxXMZhhkkF7QzeiYkqoZL3XqO3Lt0b7AmnRtkxGc6oKqMIVyNl02hVB 25OHX8MkAzIpXJhpXoYnXTqAXvk8RyDx3CJeJoYzYY4/DyO8+4g5Zvk5k8XH/+u77NsJ 1tOXdvmxiSmuM0prEL5YgUZWbOyqkElhM4i+/8bsI0X6PRoCUwjmn0UeCVT3t6ANWK6V CDP2bfpUpsOyoGwIXVQMQnEYRgA5sZHyZe/BeTzjBr3VAZ8Y1OgvIFpg3ikHvpXR4szL g5kjIWqrh1nNsTl+/Be1wg8IGCCBagds5N3S7tvqiJXq2bncqWxSHdDR3aY5NOtWx7m2 Df7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=fJ3+jpEcDhzSLlZXndAeGY4WzWLr3U6r0AYRlc68sng=; b=dsrRega0HTZ9GY+YrRU22e2/IG0d6y2ooXI3vlqQRZIaABKalH/1nRpIbcqaSCNgYB YJomq0xJSTLhiZZBrM7+5rRh0Rc4JeU2v29ER2e0oLxdNWd8mNF1BNhIe+0o0XGLXBWS 9ue4054EOZ/ZZmjvk3MylPOEVf4wirtrSUcJ4x9zofN1QDShP4NOfJ61gf1Lj59Z/P/d oFBgULxn0IfJjjv4UvEwJi1yOZ9BNjgHWFtGdroZ7/5ayJ2b2ykKj5gXTgtqZUl3eYWE unr6hShzV8q9zfwEpp8GbNPXaB/l2rSjeP8SHsmdIqM2IapiAkOMybvkKMOVMMZJpIe/ uUuw== X-Gm-Message-State: AOAM5307BnduhCSb2SvjEmX8O12bBjyrlrJ3HEHHbqeeEoT3F6z5f6fV s6v0CQ+IGjdfIaZH9LboLj0d7rv7p9dy9JHosc5h7umithA= X-Google-Smtp-Source: ABdhPJy05fRDt1/LhJ7Z96LQlD1+TKUHhGoUK8o/UywtngDCUwo1OOoKI3ZiXg3GjRJKGFqQhz73HH2GYrtvLn8CG/g= X-Received: by 2002:a05:6214:224f:b0:43f:d536:d014 with SMTP id c15-20020a056214224f00b0043fd536d014mr47490488qvc.50.1653936384415; Mon, 30 May 2022 11:46:24 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:115120 Archived-At: --===============2416824706247068091== Content-Type: multipart/alternative; boundary="000000000000ac99dd05e03f12f4" --000000000000ac99dd05e03f12f4 Content-Type: text/plain; charset="UTF-8" Dear list, I want to be able to change the font and the font size inside a MPpage. But if I try to prepend \switchtobodyfont to the text inside textext it doesn't work. I'm using the following macro to set the font size via h-height: \starttexdefinition setxheight [#1][#2] \switchtobodyfont[#1, 12pt] \scratchdimen=\dimexpr#2\relax \switchtobodyfont[#1, \cldcontext{tex.dimen.scratchdimen / tex.sp"1ex" * tex.sp"1em" .. "sp"}] \stoptexdefinition But I can't figure out how to use that in MPpage. Any help would be appreciated. Sincerely, Stefan --000000000000ac99dd05e03f12f4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear list,

I want to be able to change = the font and the font size inside a MPpage. But if I try to prepend \switch= tobodyfont=C2=A0to the text inside textext it doesn't work. I'm usi= ng the following macro to set the font size via h-height:

\starttexdefinition setxheight [#1][#2]
=C2=A0 =C2=A0 \switchtob= odyfont[#1, 12pt]
=C2=A0 =C2=A0 \scratchdimen=3D\dimexpr#2\relax
=C2= =A0 =C2=A0 \switchtobodyfont[#1, \cldcontext{tex.dimen.scratchdimen / tex.s= p"1ex" * tex.sp"1em" .. "sp"}]
\stoptexdef= inition

But I can't figure out how to use = that in MPpage.
Any help would be appreciated.

Sincerely,
Stefan
--000000000000ac99dd05e03f12f4-- --===============2416824706247068091== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2416824706247068091==--