From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115403 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 18:19:11 +0800 Message-ID: References: <7c03e60d-ee9b-a211-2fcb-30e7420ebb6b@fiee.net> <2169726b-9b08-8225-b9f2-ae9379238e81@fiee.net> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5754652109905515858==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28499"; 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 12:20:04 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 1o928Y-0006xW-7u for gctc-ntg-context-518@m.gmane-mx.org; Wed, 06 Jul 2022 12:20:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B18A628A1BB; Wed, 6 Jul 2022 12:19: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 2bYClGI3t7Nh; Wed, 6 Jul 2022 12:19:29 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4DFAD28A1AD; Wed, 6 Jul 2022 12:19:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3FD3528A1B6 for ; Wed, 6 Jul 2022 12:19: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 w3COm1UnTd1C for ; Wed, 6 Jul 2022 12:19:26 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.222.48; helo=mail-ua1-f48.google.com; envelope-from=fvleung@gmail.com; receiver= Original-Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com [209.85.222.48]) (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 CE14E281BB8 for ; Wed, 6 Jul 2022 12:19:25 +0200 (CEST) Original-Received: by mail-ua1-f48.google.com with SMTP id s3so3393462uaq.2 for ; Wed, 06 Jul 2022 03:19:25 -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=FNusYaq6bGnzLAJNtdfbpLu4QmG5DJmhnCSQbmxGs/w=; b=hsrFJCEG19EmogSeVnX9nH35Yl6iRmMEmD/N51Ktkv4iRSZVApgkeHW0wx0LqheH9L gy6nwCAbC/Mvafdd4Pha1yWRqjV614/E9cWXRuYhgqtZUav9aRCesXH4w1PiqlcpNkq9 basv7xfKtqA4RZdejeJ/Y0FODWhgAk5Kp5JKgu97xauMjEbWAf5MBz6JmuyLWewz/CKS 5Soq5XEEDmeOh9YZtLNA3IUttSj91qmcwRXbihg0jKy69XqzeVQBvFiXujArCiICLA7v Pc8IdLyxkt/7QFL4R0toMPaoaivR3/oor1x6y1MUlKcCHL1ZjEB5XY2OFLFJd1eAiO+n DZNA== 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=FNusYaq6bGnzLAJNtdfbpLu4QmG5DJmhnCSQbmxGs/w=; b=T74MtngpAYK1bJJ2FbF5yK2Jt+CNC5fiNCT0rHpND0HY2rYyG5w45ou7jJvh2xBLRH Pg8z8GrNv0as9r3PJ9G/lwXWn/NT8l3ch4r1KrNPmeLfua+hM5hwTvHDU9otIZX0RrEI JHXq35i4ekKIWsSIQcxJjAjBkKfMIaq6vLrxHqvJmTgNT83WWRbxcyyugKoM6UGhRmkc wRMOUsMsEqlB9Df0qwKE6ZlDSbbGMlLtWYYHdTjd7tcfz8O5fhlCqdV49oqOtWXpSNHl L622J1lKI/TS21Ir6Sncg3bVnX4Gc25wc6pZFkY6X/EdLnYE4eVN/+RZfIQ9h+59gCg/ X2Wg== X-Gm-Message-State: AJIora/OOvYTeyhVbily+P2HUvsDcTbN7c8QmDNRLFCmIkytUYdu8koh UCSWCj4wO6VCIO2KbATJ2xPJy05IAZ+Wd3oIHimRWrk7tIQ= X-Google-Smtp-Source: AGRyM1tiQ1FO0ThutBKnMurQxUmCHXxds2ZTae0O92w7+ImDdYS0p3enKjGEYNFeQ7Bv0Tu1/uixGPCt962MMsJ3mPc= X-Received: by 2002:ab0:6dc9:0:b0:382:c1da:3e56 with SMTP id r9-20020ab06dc9000000b00382c1da3e56mr3958437uaf.123.1657102762109; Wed, 06 Jul 2022 03:19:22 -0700 (PDT) In-Reply-To: <2169726b-9b08-8225-b9f2-ae9379238e81@fiee.net> 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:115403 Archived-At: --===============5754652109905515858== Content-Type: multipart/alternative; boundary="0000000000007dedf705e3204d9a" --0000000000007dedf705e3204d9a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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 =E4=B8=8B=E5=8D=885:23=E5=AF=AB=E9=81=93=EF=BC=9A > Am 06.07.22 um 07:17 schrieb Aditya Mahajan via ntg-context: > > On Wed, 6 Jul 2022, Henning Hraban Ramm via ntg-context wrote: > > > >> How can I change the font size of labels within one picture? > > > > (Untested): See https://www.contextgarden.net/Command/setupMPinstance > > > > \setupMPinstance[metafun][textstyle=3Dsans] > > > > Or define a new instance, which sets the textstyle to sans. > > Thank you for trying, but that doesn=E2=80=99t seem to have anything to d= o with > my question. > > I need a different font size for different labels within one picture. > > 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 > > _________________________________________________________________________= __________ > --0000000000007dedf705e3204d9a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
My stupid way to get labels of different sizes:

\starttext

\startMPcode

=C2=A0 label("normal la= bel", (0, 0));
=C2=A0
=C2=A0 label("\setsmallbodyfont smal= l label", (0, 18));

=C2=A0 label("\setbigbodyfont big labe= l", (0, -18));
=C2=A0
\stopMPcode

\stoptext

Hen= ning Hraban Ramm via ntg-context <= ntg-context@ntg.nl> =E6=96=BC 2022=E5=B9=B47=E6=9C=886=E6=97=A5 =E9= =80=B1=E4=B8=89 =E4=B8=8B=E5=8D=885:23=E5=AF=AB=E9=81=93=EF=BC=9A
=
Am 06.07.22 um 07:17 schr= ieb Aditya Mahajan via ntg-context:
> On Wed, 6 Jul 2022, Henning Hraban Ramm via ntg-context wrote:
>
>> How can I change the font size of labels within one picture?
>
> (Untested): See https://www.contextgarden.= net/Command/setupMPinstance
>
> \setupMPinstance[metafun][textstyle=3Dsans]
>
> Or define a new instance, which sets the textstyle to sans.

Thank you for trying, but that doesn=E2=80=99t seem to have anything to do = with
my question.

I need a different font size for different labels within one picture.

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
___________________________________________________________________________= ________
--0000000000007dedf705e3204d9a-- --===============5754652109905515858== 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== --===============5754652109905515858==--