Hi Guido,
this works here:
\starttext
Test Test
\usemodule[fonts-variable]
\definefontfamily [mainface] [ss] [bahnschrift]
\setupbodyfont[mainface]
\ss 123456789 Wild! \medskip
\startMPcode
picture pic;
pic := thelabel(textext("\ss This is in Metafont 0123456789"), (0, 0));
draw pic;
Thank you so much Alan, that was exactly what I was looking for.
Le ven. 20 janv. 2023 à 01:56, Alan Braslau a
écrit :
> On Thu, 19 Jan 2023 22:40:13 +0100
> Alexandre Christe via ntg-context wrote:
>
> > def labelT(expr pos)(text t) =
> > ...
> > enddef;
>
> vardef labelT@#(text t) =
>
On Thu, 19 Jan 2023 22:40:13 +0100
Alexandre Christe via ntg-context wrote:
> def labelT(expr pos)(text t) =
> ...
> enddef;
vardef labelT@#(text t) =
...
enddef ;
Then you can pass on the "suffix" @#
Alan
___
Dear Alex,
I don’t know what you want exactly.
I hope that it may help.
\startMPpage
def myLabel(expr xpos, ypos)(text t) =
dotlabel.top(textext(t),(xpos,ypos));
enddef;
myLabel(1cm, 1cm, "Position");
\stoppage
Good luck.
Best regards,
I haven't been able to find working examples. Here is some sample code. I
would really like to be able to use the light variation of this DIN-like
font.
\usemodule[fonts-variable]
\definefontfamily [mainface] [ss] [bahnschrift]
\setupbodyfont[mainface]
\starttext
\ss 123456789 Wild! \medskip
Dear list,
Is there a way in a Meta(post)/(fun) macro to specify the label position as
an argument?
def labelT(expr pos)(text t) =
...
enddef;
Thanks a lot in advance,
Alex
___
If your question is of interest to