ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Lutz Haseloff via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Lutz Haseloff <lutz.haseloff@toppkieker.info>
Subject: Re: What's the current method for using a variable font in Context and Metapost?
Date: Fri, 20 Jan 2023 19:26:03 +0100	[thread overview]
Message-ID: <9A822C16-EF71-4E75-95BF-8B20C863E8CD@toppkieker.info> (raw)
In-Reply-To: <CAPQfCtJRYtY9eX6XVzAn_DHDJ69nT_vaOdZTL-D=rdqu3g=w3Q@mail.gmail.com>


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

      reply	other threads:[~2023-01-20 18:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-19 23:38 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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9A822C16-EF71-4E75-95BF-8B20C863E8CD@toppkieker.info \
    --to=ntg-context@ntg.nl \
    --cc=lutz.haseloff@toppkieker.info \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).