From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116870 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Guido Bartolucci via ntg-context Newsgroups: gmane.comp.tex.context Subject: What's the current method for using a variable font in Context and Metapost? Date: Thu, 19 Jan 2023 18:38:01 -0500 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7069668806055533361==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37948"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Guido Bartolucci To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 20 00:38:45 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 1pIeUX-0009fM-9F for gctc-ntg-context-518@m.gmane-mx.org; Fri, 20 Jan 2023 00:38:45 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 884FF10AF; Fri, 20 Jan 2023 00:38:18 +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 urSLHextqrIp; Fri, 20 Jan 2023 00:38:16 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AD995111C; Fri, 20 Jan 2023 00:38:16 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 93BD2111A for ; Fri, 20 Jan 2023 00:38:15 +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 gVuQJetTv-a2 for ; Fri, 20 Jan 2023 00:38:13 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.160.175; helo=mail-qt1-f175.google.com; envelope-from=guido.bartolucci@gmail.com; receiver= Original-Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (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 A74EC10AF for ; Fri, 20 Jan 2023 00:38:13 +0100 (CET) Original-Received: by mail-qt1-f175.google.com with SMTP id fd15so2930443qtb.9 for ; Thu, 19 Jan 2023 15:38:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=wp/7Wnf6xCc5uD+l/jRiraIcgxu1mh4bul6H0MaN+VA=; b=AcsB+Tnzi7/FCOcvhixpglrKSA9XxO3v5uJZ64qj3It0gJnLLAYyRMJqDSc7VoNRnw DMx5dRaFqoaft7zdF22L7XVdA80QOj/dPqxm/851iuPFQSSv/7zjjJvwoSrolcuULjBN Ywi/UsRFr3kRQBqvtvw+YTi5maWyW4WduuAe2VJrrC/a8Epo6BHIytnM3TBesnR9PhbV TlDaDgffJ/swuy/Koco/aakget8ZLafpKIGhRGryNl8HIi1tYY+Kqbe8G/NljktMTf1A Jg3gLtdHewgbpgYI9XHXA7nKJdsNrhA8C9kHZ5T4ORHVAshmxf9MLsZpLqyVBGBUFTc9 K6lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=wp/7Wnf6xCc5uD+l/jRiraIcgxu1mh4bul6H0MaN+VA=; b=f0pQCc373seGAqWLmaTmQLkXZ3i4K0uAfVQyKTItm8bQ9TWe0h6WSfnQ30S8g1Xq7L IrmbX3BdC59y7RuZFkmi3tXWs/htcNSxnl0Phdp72OxiOoDP+nlO2WRn6gcrq70NoN5E qBTFc+SzEME32Op57kze7I7IA1rZCZUZ247/C9BuIDb2LYLXl0R95riQGu8CkGS3T6g7 FX+ZhLgwOjnf9sTFO8htzLDok2nDU8oqJkc3QPACNJC4DZjjHDLZsIp2NjTAJolB8i7K S79tE+it4jll5mV3fGcgT7GWNX16yFf3XfK4JBrBhBMMlf896nkLLfWQNLAuMZd5rQL4 yygQ== X-Gm-Message-State: AFqh2kotm3GA0GqZ/0jlwUXVBXv9/7AOpp5Fb5+EG309dMbai39hWuLo dvFzFnYqAuCdMimQr3XZcndBFGSJ3+xijW3Kns3bhExHPw== X-Google-Smtp-Source: AMrXdXt3D4F6YK2Dn+pwYx8BFNErTNrv0VTb3L1xodlnh6g/Lg/oAK0ZNEBsvH+3dUsko/Gxq+qRMtMJYBt31H3Nu18= X-Received: by 2002:ac8:720b:0:b0:3a8:2080:4113 with SMTP id a11-20020ac8720b000000b003a820804113mr686170qtp.183.1674171491749; Thu, 19 Jan 2023 15:38:11 -0800 (PST) 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:116870 Archived-At: --===============7069668806055533361== Content-Type: multipart/alternative; boundary="0000000000000f166105f2a66d29" --0000000000000f166105f2a66d29 Content-Type: text/plain; charset="UTF-8" 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 --0000000000000f166105f2a66d29 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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]
\d= efinefontfamily [mainface] [ss] [bahnschrift]
\setupbodyfont[mainface]
\starttext
\ss 123456789 Wild! \medskip

\startMPcode
pic= ture pic;
pic :=3D thelabel("This is in Metafont 0123456789", = (0, 0));
draw pic;
\stopMPcode

\stoptext
--0000000000000f166105f2a66d29-- --===============7069668806055533361== 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== --===============7069668806055533361==--