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 <ntg-context@ntg.nl> 於 2022年7月6日 週三 下午5:23寫道:
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=sans]
>
> Or define a new instance, which sets the textstyle to sans.

Thank you for trying, but that doesn’t 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 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
___________________________________________________________________________________