ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* What's the current method for using a variable font in Context and Metapost?
@ 2023-01-19 23:38 Guido Bartolucci via ntg-context
  2023-01-20  7:02 ` Lutz Haseloff via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: Guido Bartolucci via ntg-context @ 2023-01-19 23:38 UTC (permalink / raw)
  To: ntg-context; +Cc: Guido Bartolucci


[-- Attachment #1.1: Type: text/plain, Size: 414 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 517 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-01-20 18:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-19 23:38 What's the current method for using a variable font in Context and Metapost? Guido Bartolucci via ntg-context
2023-01-20  7:02 ` Lutz Haseloff via ntg-context
2023-01-20 17:28   ` Guido Bartolucci via ntg-context
2023-01-20 18:26     ` Lutz Haseloff via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).