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

* Re: What's the current method for using a variable font in Context and Metapost?
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Lutz Haseloff via ntg-context @ 2023-01-20  7:02 UTC (permalink / raw)
  To: ntg-context; +Cc: Lutz Haseloff

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@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
> ___________________________________________________________________________________
___________________________________________________________________________________
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

* Re: What's the current method for using a variable font in Context and Metapost?
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Guido Bartolucci via ntg-context @ 2023-01-20 17:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Guido Bartolucci


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

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]
> \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@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
> >
> ___________________________________________________________________________________
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3657 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

* Re: What's the current method for using a variable font in Context and Metapost?
  2023-01-20 17:28   ` Guido Bartolucci via ntg-context
@ 2023-01-20 18:26     ` Lutz Haseloff via ntg-context
  0 siblings, 0 replies; 4+ messages in thread
From: Lutz Haseloff via ntg-context @ 2023-01-20 18:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Lutz Haseloff


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

\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 ntg-context <ntg-context@ntg.nl>:
>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]
>> \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@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
>> >
>> ___________________________________________________________________________________
>>
>> ___________________________________________________________________________________
>> 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
>>
>> ___________________________________________________________________________________
>>

[-- Attachment #1.2: Type: text/html, Size: 4260 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).