From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107451 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Gerben Wierda Newsgroups: gmane.comp.tex.context Subject: How to define a font with an effect as a font with \definefont Date: Sat, 23 May 2020 11:52:19 +0200 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Content-Type: multipart/mixed; boundary="===============0826073987184961817==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="2492"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat May 23 11:53:29 2020 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 1jcQq4-0000UV-51 for gctc-ntg-context-518@m.gmane-mx.org; Sat, 23 May 2020 11:53:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 473CF18442D; Sat, 23 May 2020 11:52:24 +0200 (CEST) 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 cRGCPnlJIeaV; Sat, 23 May 2020 11:52:22 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1862918441C; Sat, 23 May 2020 11:52:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 23622184406 for ; Sat, 23 May 2020 11:52:21 +0200 (CEST) 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 mXqDQ24MlqfU for ; Sat, 23 May 2020 11:52:20 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=213.125.118.53; helo=mail.rna.nl; envelope-from=gerben.wierda@rna.nl; receiver= Original-Received: from mail.rna.nl (mail.rna.nl [213.125.118.53]) (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 34E96182A3D for ; Sat, 23 May 2020 11:52:20 +0200 (CEST) Original-Received: from hermione.rna.nl (hermione.rna.nl [192.168.2.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.rna.nl (Postfix) with ESMTPSA id 845123EF0676 for ; Sat, 23 May 2020 11:52:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rna.nl; s=dkim_rsa2048; t=1590227539; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=x0xVZxG4sLII2/UGu1cvSwR3H/8jpV7oV7CavK9KZzs=; b=CGldW+w5K4kLE7+ryde65KdHTwVDJ/QKKtwq5Gs6+JhJqyDxh2kSo1oDYuVUVL70ixrfDf RNHiSuYb98IMFrWqQ1uflWjsidEgWPDQZ7YZwyHpWEmmFEUNJ6+6GpdaFXKGti+U9OzhA9 JUM7yurkAnnDZmaNqRiB1G59KfuXLLCL3BZIZYAsTUlghfmPv6JUvcB0G99NiaOyB+BjhX dF0Sly9UfX0CIBbS2NLaClae+4igWWRA/YcNfdM1h8+7UIPTuw4Q4QZf7M2CzGeLGf3atr 4nlg4Lki9XeGZFUJb79BfJQR6B8FwZ+FSoC7CPa2yhcU9S5FEJSAHDGTVYyuOQ== X-Mailer: Apple Mail (2.3445.104.14) 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:107451 Archived-At: --===============0826073987184961817== Content-Type: multipart/alternative; boundary="Apple-Mail=_F6CB8FE4-AC26-43E7-AF49-4D09FDC8E19C" --Apple-Mail=_F6CB8FE4-AC26-43E7-AF49-4D09FDC8E19C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Wityh this working example: \starttext The quick brown fox jumped over the lazy dog \definefontfeature [effect-widen] [effect=3D{width=3D.2,delta=3D0.3}] \definedfont[Sans*widen,effect-widen] The quick brown fox jumped over the lazy dog \stoptext I am puzzling to turn my working \definedfont into a \definefont so I = can use that instead. Actually, my setup is Optima with Helvetica used for Cyrillic: \definefallbackfamily [archimate] [ss] [Helvetica] [preset=3Drange:cyrillic, tf=3Dstyle:light, it=3Dstyle:lightoblique, bf=3Dstyle:regular, bi=3Dstyle:oblique, force=3Dyes, rscale=3D1.0] \definefontfamily [archimate] [ss] [Optima] \setupbodyfont[archimate] And I would like the effect to work on just the Optima font (which is a = bit light for this use) I=E2=80=99ve been trying to work out using \definefont with the effect = but have so far failed. Thanks, G= --Apple-Mail=_F6CB8FE4-AC26-43E7-AF49-4D09FDC8E19C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Wityh= this working example:

\starttext
The quick brown fox jumped over the lazy = dog

\definefontfeature
[effect-widen]
  [effect=3D{width=3D.2,delta=3D0.3}]
<= div class=3D"">\definedfont[Sans*widen,effect-widen]
The quick brown fox jumped over the lazy = dog

\stoptext

I am puzzling to turn my working = \definedfont into a \definefont so I can use that instead.

Actually, my setup is = Optima with Helvetica used for Cyrillic:

\definefallbackfamily
  [archimate]
  [ss]
  [Helvetica]
  [preset=3Drange:cyrillic,
   tf=3Dstyle:light,
  =  it=3Dstyle:lightoblique,
   bf=3Dstyle:regular,
  =  bi=3Dstyle:oblique,
   force=3Dyes,
   rscale=3D1.0]
\definefontfamily [archimate] [ss] = [Optima]
\setupbodyfont[archimate]

And I would like the effect to work on = just the Optima font (which is a bit light for this use)

I=E2=80=99ve been trying = to work out using \definefont with the effect but have so far = failed.

Thanks,

G
= --Apple-Mail=_F6CB8FE4-AC26-43E7-AF49-4D09FDC8E19C-- --===============0826073987184961817== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0826073987184961817==--