Dear Keith,

On Tue, 25 Nov 2025 at 18:28, Keith McKay wrote:
>
> There is the command lmt_oscillated[...] in the latest update. Have a
> look in the file luametafun-oscillate.tex which may have what you need.

Awesome functionality, thanks a lot for the pointer!

That actually already answers the second question that I had: how to
convert text to curves ;)
(I was at a fab lab earlier today and the initial text (from
lmt_followtext) did not come through before, while this does.)

But now I have the third question: how can I avoid changing text size,
so that it does NOT fit the full length of the curve, but use a
consistent size instead?

I can of course shorten the curve and only keep an arc, but I would
like to typeset 20 different words on an arc while keeping the font
size consistent.

Thanks a lot,
    Mojca

\setupbodyfont
    [antykwa,11pt]
\starttext

% This is a simple version that typsets almost what I want,
% only somewhat too tight and I would need curves.
\startMPpage
draw fullcircle scaled 10cm;

draw lmt_followtext [
    text = "{\switchtobodyfont[25pt]\bf Mathematician}",
    path = fullcircle scaled 8.5cm rotated 90,
    trace = false,
    spread = false,
    reverse = false,
];
\stopMPpage

% This is what I would like to use, but it's too big / spread too much.
\startMPpage
draw fullcircle scaled 10cm;

path p ;
p := lmt_oscillated [
    text = "{\switchtobodyfont[25pt]\bf Mathematician}",
    path = fullcircle scaled 8.5cm,
] ;
draw p withcolor "darkred";
\stopMPpage

% This is what I really want,
% but it's annoying to guess the size to make the font sizes consistent
\def\token#1#2{%
\startMPpage
draw fullcircle scaled 10cm;

numeric angle; angle := #2;
path p ;
p := lmt_oscillated [
    text = "{\switchtobodyfont[25pt]\bf #1}",
    path = (fullcircle cutafter (origin -- dir(angle))) rotated
(270-angle/2) scaled 8.5cm,
] ;
draw p withcolor "darkred";
\stopMPpage
}

% Guessing the second parameter is tricky
\token{Mathematician}{86}
\token{Imp}{20}
\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to