[NTG-context] MetaPost label font size

fv leung fvleung at gmail.com
Wed Jul 6 12:19:11 CEST 2022


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 at 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 at 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
>
> ___________________________________________________________________________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220706/357b68ae/attachment.htm>


More information about the ntg-context mailing list