[NTG-context] What's the current method for using a variable font in Context and Metapost?
Lutz Haseloff
lutz.haseloff at toppkieker.info
Fri Jan 20 08:02:02 CET 2023
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;
\stopMPcode
Greetings Lutz
Am 20.01.2023 um 00:38 schrieb 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
>
> \startMPcode
> picture pic;
> pic := thelabel("This is in Metafont 0123456789", (0, 0));
> draw pic;
> \stopMPcode
>
> \stoptext
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context at ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : https://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___________________________________________________________________________________
More information about the ntg-context
mailing list