From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116883 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Guido Bartolucci via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: What's the current method for using a variable font in Context and Metapost? Date: Fri, 20 Jan 2023 12:28:23 -0500 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7659948006212634052==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36563"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Guido Bartolucci To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 20 18:29:57 2023 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pIvDB-0009K9-Ha for gctc-ntg-context-518@m.gmane-mx.org; Fri, 20 Jan 2023 18:29:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A7316380486; Fri, 20 Jan 2023 18:28:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7bFjVUgY5NPQ; Fri, 20 Jan 2023 18:28:39 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 49B021124; Fri, 20 Jan 2023 18:28:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 10E00111F for ; Fri, 20 Jan 2023 18:28:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Pseeg6gUlJDD for ; Fri, 20 Jan 2023 18:28:35 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.160.174; helo=mail-qt1-f174.google.com; envelope-from=guido.bartolucci@gmail.com; receiver= Original-Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 73DBA111C for ; Fri, 20 Jan 2023 18:28:35 +0100 (CET) Original-Received: by mail-qt1-f174.google.com with SMTP id q15so4723251qtn.0 for ; Fri, 20 Jan 2023 09:28:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=5K2cJpB/mmEh/UinDCfknCIj7rD4z6tJUXMuJQMEseU=; b=ePHCIPoGp225NPP0Vj9+39QrCD9ERq+xjwBB9vfb+m/UUVzNE6E3tldTERDJSIlLlH l4g7a1gw2hW8XYkRrAqC2TTtUvIcUwjP+HOOzuZbr0JMdnwN8YtckPU+6hO8XvreFc8p n2V+rwsThZBuyFa/dZGANFMBcZJQBmIsOm0mWUPz+6OYJ7ReQi7/ftekEse7t3sgHnfB pVidIrtogZTiJXwJpK8AZuhR7jhWVBkGe48tOA4/8J6HkAuBeTS9X4Ax++zA8hju/X8b ws6Jf/+EwNSsW1PxXZHFZOrlUIK7ivE6Efok4BsYawEHhoyf0XWkUYdvFliikwRxgyDU Q73Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5K2cJpB/mmEh/UinDCfknCIj7rD4z6tJUXMuJQMEseU=; b=VyaivW2sDMiMFjKt+n265aiDAYP3UZrJvxHfLN5b86HjVjplt1xWy5tEqq4CvlYGoe 1U8O+eHHOe94+865lSx/iSQBWyIgALAH021aZL6NBlb1EYlrSNKsdfrlQqr5Pauec+Gj g321GWNfpFQaXB/x6229Bluot0iJ4qZGw8BW8iDqkt9lGvxWMYJgr5vwJP0cyXZRCvIO HOrfDbkangu3kPsNmgRbpUKFqSkfvP5In80P6YokmlIi+pLcEGyxNPb6xDi56v5bsmeA w8FBYi3T3Qaho3Jb+N5YV6fWdN1GEwc9s3G4TmCPvrnRLAJks1NQBUo9A/og0Tkf8pYO ay4Q== X-Gm-Message-State: AFqh2ko51aAbDzx9qKFDZWIcHXxgEAe+FV3LTV+mqc5iqa0BCRUs8uFx RxV3Nv7btDLLiZl7Pm2CqIHKGvEM1s6Dfkq3Zw7PPDE= X-Google-Smtp-Source: AMrXdXse+eJR1gdsfmNRIgyU0FelhPgzOsEGBqZGg6DH05J5SQN8JWYIUWUJENWLkN2HInCQIFAgTxtcQngYx1NMXuc= X-Received: by 2002:ac8:750e:0:b0:3b6:3494:16e with SMTP id u14-20020ac8750e000000b003b63494016emr702945qtq.126.1674235713944; Fri, 20 Jan 2023 09:28:33 -0800 (PST) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:116883 Archived-At: --===============7659948006212634052== Content-Type: multipart/alternative; boundary="0000000000000001a605f2b561f7" --0000000000000001a605f2b561f7 Content-Type: text/plain; charset="UTF-8" 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 > > ___________________________________________________________________________________ > --0000000000000001a605f2b561f7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
And how do you set the light variation?

On Fri, Jan 2= 0, 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 :=3D 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 :=3D 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/list= info/ntg-context
> webpage=C2=A0 : https://www.pragma-ade.nl / http://context.aanhet.= net
> archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
> wiki=C2=A0 =C2=A0 =C2=A0: https://contextgarden.net
> ______________________________________________________________________= _____________
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / https://www.ntg.nl/mailman/listinfo/= ntg-context
webpage=C2=A0 : https://www.pragma-ade.nl / http://context.aanhet.net
archive=C2=A0 :
https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: https://contextgarden.net
___________________________________________________________________________= ________
--0000000000000001a605f2b561f7-- --===============7659948006212634052== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============7659948006212634052==--