From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115406 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: fv leung via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: MetaPost label font size Date: Wed, 6 Jul 2022 20:26:46 +0800 Message-ID: References: <7c03e60d-ee9b-a211-2fcb-30e7420ebb6b@fiee.net> <2169726b-9b08-8225-b9f2-ae9379238e81@fiee.net> <14f7c63c-c8f3-f24d-dc53-b13b2da2cc30@freedom.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6023533634027434574==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31280"; mail-complaints-to="usenet@ciao.gmane.io" Cc: fv leung To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 06 14:27:42 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 1o9485-0007u9-1q for gctc-ntg-context-518@m.gmane-mx.org; Wed, 06 Jul 2022 14:27:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 982632A2EC1; Wed, 6 Jul 2022 14:27:05 +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 ndAAh7M6LKP9; Wed, 6 Jul 2022 14:27:02 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4645E2A1BDC; Wed, 6 Jul 2022 14:27:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C33C32A1BDC for ; Wed, 6 Jul 2022 14:27:00 +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 u96Mz2QjQOlm for ; Wed, 6 Jul 2022 14:26:59 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.217.44; helo=mail-vs1-f44.google.com; envelope-from=fvleung@gmail.com; receiver= Original-Received: from mail-vs1-f44.google.com (mail-vs1-f44.google.com [209.85.217.44]) (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 837982A1B20 for ; Wed, 6 Jul 2022 14:26:59 +0200 (CEST) Original-Received: by mail-vs1-f44.google.com with SMTP id j6so14934841vsi.0 for ; Wed, 06 Jul 2022 05:26:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=zAHy3ayjBFv0XnPvneyHs/gy4FeOv0Qfw2qx7Pgp8IU=; b=bsORBzes1ZMP6zZB2hn1ly1FLchKbWQ1NjvQQrowVL02xpgABMI5ZFjfeCv7NeXLjL EF/S5bVuc2wdokUdCk1vD3y9WLv1Ahj8o7tB6NaAfpjQm0miYT/oTyBrk7c7dvG5Oz3U WULiszgnrWIegYclqHizdfgZExSyg0bynvg0AY8I6ATWn3xwQTe6JfMi7DhV7NnoHsX+ wGZ27KK/t6ww7VfnvQW6ng7wQ/jv7+ERLdjC1U3sBxtu4yJRU//jDhj6ilKtYSrfLZrT jiIJU7pCpumOhJV9IzQ3t0lDc3jQ2kq/5m56jqzGlsElJxtBG+EpK5Ae0y3WZPNCd8jz R1qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=zAHy3ayjBFv0XnPvneyHs/gy4FeOv0Qfw2qx7Pgp8IU=; b=K1o9pGcseBinhJw7HwMGqb2/VUaPhRnBwHMUR+Rhurzz1jQasMHT0mwHucq21vQuYx 6pi3DyVcIeVMT5ebQEbOKk4g4KG7R+TmxVt5cDMpk0BzlbpsXOsal0EOaiJm5Pk5gJ31 qIuf2DfEmlBr0pQOMnzMRqPJKgOgz4fjvj1b0Q60soqsh38ao0xRtYKtLaAM1QLW4/2B vuK7DstnTkengx1jTujPgq7232ZLjJjm6jzQnf8S1An9ylAUp9g1vJg8P0sDMQpbehbl +3uvvwNu47YLaHNBgLxy+barhSrqQGRCBFOeKp3f1PTT/9IHTYJaJWRz63HcaeH3uWTZ jI6Q== X-Gm-Message-State: AJIora+7UFAryKSX8nxmTmI2oi0unfDczXe0Y7CWu5W/4KGKXzOo2Pwb q9SPvWYnwC054yBx9BjKj29AVIBHd1RNcou3dtz08IM4p4E= X-Google-Smtp-Source: AGRyM1vYSTiOw55EWT34qF9Gbo9gl81lhppsb5GyIuUXGcNmp9LYHFW+F3lZzFHENO+T3wjyvVAhjwI68rXG/L48Opg= X-Received: by 2002:a05:6102:300c:b0:354:43e1:b230 with SMTP id s12-20020a056102300c00b0035443e1b230mr20789609vsa.79.1657110416562; Wed, 06 Jul 2022 05:26:56 -0700 (PDT) In-Reply-To: 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:115406 Archived-At: --===============6023533634027434574== Content-Type: multipart/alternative; boundary="000000000000bb9c1b05e32215c7" --000000000000bb9c1b05e32215c7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I've used something like the following before. \starttext \startMPcode label("normal label", (0, 0)); label("{\switchtobodyfont[3pt] tiny label}", (0, 18)); label("{\switchtobodyfont[72pt] giant label}", (0, -72)); \stopMPcode \stoptext Henning Hraban Ramm via ntg-context =E6=96=BC 2022=E5= =B9=B47=E6=9C=886=E6=97=A5 =E9=80=B1=E4=B8=89 =E6=99=9A=E4=B8=8A7:36=E5=AF=AB=E9=81=93=EF=BC=9A > Am 06.07.22 um 12:45 schrieb Hans Hagen via ntg-context: > > On 7/6/2022 12:19 PM, fv leung via ntg-context wrote: > >> My stupid way to get labels of different sizes: > >> > >> \starttext > >> > >> \startMPcode > >> > >> label("normal label", (0, 0)); > >> > >> label("\setsmallbodyfont small label", (0, 18)); > >> > >> label("\setbigbodyfont big label", (0, -18)); > >> > >> \stopMPcode > >> > >> \stoptext > > nothing stupid about that ... it's how i would do it > > Okay. So there=E2=80=99s really no possibility to adapt whatever defines = the > label font size except defaultfontsize inbetween? Strange. > > My solution so far was to split the picture and re-combine it afterwards. > > Hraban > > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --000000000000bb9c1b05e32215c7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've used something like the following before.

\starttext

\startMPcode

=C2=A0 label("no= rmal label", (0, 0));
=C2=A0
=C2=A0 label("{\switchtobodyf= ont[3pt] tiny label}", (0, 18));

=C2=A0 label("{\switchtob= odyfont[72pt] giant label}", (0, -72));
=C2=A0
\stopMPcode
<= br>\stoptext

Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl> =E6=96=BC 2022=E5=B9=B4= 7=E6=9C=886=E6=97=A5 =E9=80=B1=E4=B8=89 =E6=99=9A=E4=B8=8A7:36=E5=AF=AB=E9= =81=93=EF=BC=9A
= Am 06.07.22 um 12:45 schrieb Hans Hagen via ntg-context:
> On 7/6/2022 12:19 PM, fv leung via ntg-context wrote:
>> My stupid way to get labels of different sizes:
>>
>> \starttext
>>
>> \startMPcode
>>
>> =C2=A0=C2=A0 label("normal label", (0, 0));
>>
>> =C2=A0=C2=A0 label("\setsmallbodyfont small label", (0, = 18));
>>
>> =C2=A0=C2=A0 label("\setbigbodyfont big label", (0, -18)= );
>>
>> \stopMPcode
>>
>> \stoptext
> nothing stupid about that ... it's how i would do it

Okay. So there=E2=80=99s really no possibility to adapt whatever defines th= e
label font size except defaultfontsize inbetween? Strange.

My solution so far was to split the picture and re-combine it afterwards.
Hraban

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--000000000000bb9c1b05e32215c7-- --===============6023533634027434574== 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== --===============6023533634027434574==--