Am 06.07.22 um 15:24 schrieb Fabrice L:
Here are slightly different syntax that could be useful perhaps ? In the second
one, the scaled parameter can be replaced easily with a variable, so you can
decide and change the size of the label during the course of a picture.
Thank you (all), I resol
> Le 5 juill. 2022 à 19:00, Henning Hraban Ramm via ntg-context
> a écrit :
>
> How can I change the font size of labels within one picture?
>
> Hraban
>
> \startMPpage
> defaultfont := "\truefontname{Sans}";
> defaultfontsize := \the\bodyfontsize;
>
> label.top(defaultfontsize, (0,0));
>
On 7/6/2022 1:36 PM, Henning Hraban Ramm via ntg-context wrote:
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("
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 於 2022年7月6
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("\setbigbodyf
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
nothin
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 於 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=s
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 san
How can I change the font size of labels within one picture?
Hraban
\startMPpage
defaultfont := "\truefontname{Sans}";
defaultfontsize := \the\bodyfontsize;
label.top(defaultfontsize, (0,0));
defaultfontsize := 4bp;
label.top(defaultfontsize, (50,0));
% shows that the variable changed,
% but
10 matches
Mail list logo