From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116884 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lutz Haseloff 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 19:26:03 +0100 Message-ID: <9A822C16-EF71-4E75-95BF-8B20C863E8CD@toppkieker.info> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8219426526145659237==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14063"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lutz Haseloff To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 20 19:26:56 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 1pIw6J-0003Sz-Em for gctc-ntg-context-518@m.gmane-mx.org; Fri, 20 Jan 2023 19:26:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8E73B111A; Fri, 20 Jan 2023 19:26:33 +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 MXuZnnw-W3P0; Fri, 20 Jan 2023 19:26:32 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4E1A81103; Fri, 20 Jan 2023 19:26:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C46391103 for ; Fri, 20 Jan 2023 19:26:29 +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 Q9XgEfpW2Ko9 for ; Fri, 20 Jan 2023 19:26:27 +0100 (CET) Received-SPF: Pass (helo) identity=helo; client-ip=81.169.146.217; helo=mo4-p00-ob.smtp.rzone.de; envelope-from=lutz.haseloff@toppkieker.info; receiver= Original-Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [81.169.146.217]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id AE34110A4 for ; Fri, 20 Jan 2023 19:26:27 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; t=1674239187; cv=none; d=strato.com; s=strato-dkim-0002; b=aCE9y/2X+EZqZWVi0hR4kKpYWeuIT31F4O4XbEGuiCsSeacblOtMM2my3vg88FnfEj DSR9FESTTmYZFYaWLPYdthrR/NOzxk3N6os8QSWme1m+CWsiRjRDUUuzb3bXM+OUHEN1 7WEOBzZNNWsTbIbAosiQEQCBQXvR1/ta4gX9JhDtjevAbBYJlLwiA8p85U+zzEw+JuW8 LsWNZ2lA23YmMziUjtsvf3D5hYAjDOHXtBu1V69RGqlpT+jvYuWKApArt5WHScf/E4fl oyCXG/KE46BYTo/CfKCDM9jt7GY3nzVyu0xoJrXRk3+aCpAVBOMbhZpuX6G9aAqZlnWA EfyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1674239187; s=strato-dkim-0002; d=strato.com; h=Message-ID:References:In-Reply-To:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=heYjddlPy9zAZ+e/UdiGfEm8hCAW3zil/sztwaacctY=; b=NG+YCVVupFFYg7TIFydMpmVZEH3/5A06zuxGMzxaH3hPf9LLn40iKasFtGukvdLPFU 9RgdRA/+vaDbhOnHr2IGwO3WG7MEjggb44LmfOcHCWOdbHzOa6cPCui399JYxNi0bZ26 bJ0OGOJ8TJJL7JgNiLS1Mv2ejFzXphSBmaHFtrEZC8Y1it4cCtotIfV5QUzkvE9Z4o8l 19xDGNodAhVJTAr5cbjpKOzLHK7tRphNhrnM9sW3tDpirsQWwDXmrbA9X1tpmY//m11m uAIm8DpsiWpQB93492HAB9UKLHz9vVCNrXMRh/O2MQqIfttYrbBYxKC3OKOzNHgOVAZW 6BcA== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1674239187; s=strato-dkim-0002; d=toppkieker.info; h=Message-ID:References:In-Reply-To:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=heYjddlPy9zAZ+e/UdiGfEm8hCAW3zil/sztwaacctY=; b=GNsqC8dl0mSQzkSo8EyelYyaO+vZAfDQds6Ge1dA+CUPmUrjWBcY6/yLMXglX+5aUz eG6y6gw60MWUzCIArO/EsZJYyGQP0kwQqIM5FgC/POOzFHOG154v7+iiIo+NJjkI+iGz lmIymmfSKB3Qt9vSb7d88JsPSGtYnebjXgN1sz1Suq67DuVRE18UjVnAmyBlBmC8a+dP sZv5dV314ZikdaNdlwpWKnLaWZqnAe9FB/ebU3Bx3981XaD3EFan7Yrc49Qu7K3YLtbN zOKDBFVaqwPWN+ondbdwSQjLKG5HrQy3QHI361zk2scgun/dllomeGPjOyddXzubkPYo STvg== X-RZG-AUTH: ":IHkQbw6geuzPHokbjwREyaVCwUnRg4l4M61DnCKQiup5oU3VJYnTARnVQHs13oVJE7WiPsWCWbjV7jUx" Original-Received: from [127.0.0.1] by smtp.strato.de (RZmta 49.1.0 AUTH) with ESMTPSA id J0395az0KIQR5Eh (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Fri, 20 Jan 2023 19:26:27 +0100 (CET) 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:116884 Archived-At: --===============8219426526145659237== Content-Type: multipart/alternative; boundary=----Z51161N8HBH3O9M7FTP6N0HBEYUZNT Content-Transfer-Encoding: 7bit ------Z51161N8HBH3O9M7FTP6N0HBEYUZNT Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable \starttext Test Test \definefont[bahnlight][name:bahnschriftlight*default] \startMPcode picture pic; pic :=3D thelabel(textext("\bahnlight This is Bahnschrift light in Metafon= t 0123456789"), (0, 0)); draw pic; \stopMPcode \stoptext Am 20=2E Januar 2023 18:28:23 MEZ schrieb Guido Bartolucci via ntg-context= : >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=2Enl> 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=2E01=2E2023 um 00:38 schrieb Guido Bartolucci via ntg-context: >> > I haven't been able to find working examples=2E Here is some sample >> > code=2E I would really like to be able to use the light variation of >> > this DIN-like font=2E >> > >> > \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 entr= y >> to the Wiki! >> > >> > maillist : ntg-context@ntg=2Enl / >> https://www=2Entg=2Enl/mailman/listinfo/ntg-context >> > webpage : https://www=2Epragma-ade=2Enl / http://context=2Eaanhet=2E= net >> > archive : https://bitbucket=2Eorg/phg/context-mirror/commits/ >> > wiki : https://contextgarden=2Enet >> > >> _______________________________________________________________________= ____________ >> >> _______________________________________________________________________= ____________ >> If your question is of interest to others as well, please add an entry = to >> the Wiki! >> >> maillist : ntg-context@ntg=2Enl / >> https://www=2Entg=2Enl/mailman/listinfo/ntg-context >> webpage : https://www=2Epragma-ade=2Enl / http://context=2Eaanhet=2Ene= t >> archive : https://bitbucket=2Eorg/phg/context-mirror/commits/ >> wiki : https://contextgarden=2Enet >> >> _______________________________________________________________________= ____________ >> ------Z51161N8HBH3O9M7FTP6N0HBEYUZNT Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable \starttext
Test Test

\definefont[bahnlig= ht][name:bahnschriftlight*default]

\startMPcode
picture pic;
p= ic :=3D thelabel(textext("\bahnlight This is Bahnschrift light in Metafont = 0123456789"), (0, 0));
draw pic;
\stopMPcode

\stoptext

=
Am 20=2E Januar 2023 18:28:23 MEZ schrieb Guido = Bartolucci via ntg-context <ntg-context@ntg=2Enl>:
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=2Enl> 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));<= br> draw pic;
\stopMPcode


Greetings Lutz


Am 20=2E01=2E2023 um 00:38 schrieb Guido Bartolucci via ntg-context:
> I haven't been able to find working examples=2E Here is some sample <= br> > code=2E I would really like to be able to use the light variation of =
> this DIN-like font=2E
>
> \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 entr= y to the Wiki!
>
> maillist : = ntg-context@ntg=2Enl / https://www=2Entg=2Enl= /mailman/listinfo/ntg-context
> webpage  : https://www=2Epragma-ade=2Enl / http://co= ntext=2Eaanhet=2Enet
> archive  : https://bitbucket=2Eorg/phg= /context-mirror/commits/
> wiki     : https://contextgarden=2Enet
> _____________________________________________________________________= ______________
__________________________________________________________________________= _________
If your question is of interest to others as well, please add an entry to = the Wiki!

maillist : ntg-c= ontext@ntg=2Enl / https://www=2Entg=2Enl/mail= man/listinfo/ntg-context
webpage  : https://www=2Epragma-ade=2Enl / http://context= =2Eaanhet=2Enet
archive  : https://bitbucket=2Eorg/phg/cont= ext-mirror/commits/
wiki     : https://contextgarden=2Enet
__________________________________________________________________________= _________
------Z51161N8HBH3O9M7FTP6N0HBEYUZNT-- --===============8219426526145659237== 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== --===============8219426526145659237==--