Re: [NTG-context] What's the current method for using a variable font in Context and Metapost?

2023-01-20 Thread Lutz Haseloff via ntg-context
\starttext Test Test \definefont[bahnlight][name:bahnschriftlight*default] \startMPcode picture pic; pic := thelabel(textext("\bahnlight This is Bahnschrift light in Metafont 0123456789"), (0, 0)); draw pic; \stopMPcode \stoptext Am 20. Januar 2023 18:28:23 MEZ schrieb Guido Bartolucci via

Re: [NTG-context] What's the current method for using a variable font in Context and Metapost?

2023-01-20 Thread Guido Bartolucci via ntg-context
And how do you set the light variation? On Fri, Jan 20, 2023 at 2:08 AM Lutz Haseloff via ntg-context < ntg-context@ntg.nl> wrote: > Hi Guido, > > > this works here: > > \starttext > Test Test > > \usemodule[fonts-variable] > \definefontfamily [mainface] [ss] [bahnschrift] >

Re: [NTG-context] What's the current method for using a variable font in Context and Metapost?

2023-01-19 Thread Lutz Haseloff via ntg-context
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;

[NTG-context] What's the current method for using a variable font in Context and Metapost?

2023-01-19 Thread Guido Bartolucci via ntg-context
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