From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107462 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Gerben Wierda Newsgroups: gmane.comp.tex.context Subject: Re: How to define a font with an effect as a font with \definefont Date: Sat, 23 May 2020 21:50:13 +0200 Message-ID: References: <83c26c6b-14af-aeed-0e54-5f5a4bd50cbc@gmail.com> 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="===============3284050243914700555==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="2697"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Pablo Rodriguez To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat May 23 21:52:19 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 1jcaBu-0000bA-Pg for gctc-ntg-context-518@m.gmane-mx.org; Sat, 23 May 2020 21:52:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 046B618446D; Sat, 23 May 2020 21:50:20 +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 9Il_arpX0tj0; Sat, 23 May 2020 21:50:19 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 12B0C18446F; Sat, 23 May 2020 21:50:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 70AFD184467 for ; Sat, 23 May 2020 21:50:17 +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 Zwd1KBhBi2X1 for ; Sat, 23 May 2020 21:50:16 +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 69D4E184461 for ; Sat, 23 May 2020 21:50:16 +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 73D5A3EF5613; Sat, 23 May 2020 21:50:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rna.nl; s=dkim_rsa2048; t=1590263413; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7A6CBDCgI+dXTBlpFiCwgvOf1C5UvpBvitSe9ZtpPbQ=; b=FMc8XvpQxXcUtnY7MhwChq1jbcNk975rEhQbWRW5oGvZsaOPMMWUdk+OKxTzjnRSeQd5FG 24CLhIYm2ozAM5FR6296vDgHPpv51QPnAMNSuIEyETStNp/2MgzsBHCcc2imjt0nJSxx2t Wrkr3G0j1biBGN+S4/8HtjzwWcWuck5MF/I2aFdmiYd2Asj3RabmBWumV6p/j+jUdJ/eIF vCKWisNwFQ+AZx8y65dmjXBmqyYvBrBRbnG/6z6cQ+rc/i/HVO6F3iZPbcF30JWt3me4He FV7g5pxWhQflYm8qjw4OtKb43vfVi9KZ+D5hVuEBklKIiPYBD2+YcXdohprMKg== In-Reply-To: <83c26c6b-14af-aeed-0e54-5f5a4bd50cbc@gmail.com> 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:107462 Archived-At: --===============3284050243914700555== Content-Type: multipart/alternative; boundary="Apple-Mail=_B552E639-696B-41D9-A07D-534046BC8E1C" --Apple-Mail=_B552E639-696B-41D9-A07D-534046BC8E1C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 23 May 2020, at 20:06, Wolfgang Schuster = wrote: >=20 > Pablo Rodriguez schrieb am 23.05.2020 um 20:02: >> On 5/23/20 11:52 AM, Gerben Wierda wrote: >>> [] >>> Actually, my setup is Optima with Helvetica used for Cyrillic: >>>=20 >>> \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] >>>=20 >>> And I would like the effect to work on just the Optima font (which = is a >>> bit light for this use) >> Hi Gerben, >> this code may work for you: >=20 > Don't forget to apply the "default" features to get ligatures and = kerning. >=20 >> \definefontfeature >> [effect-widen] >> [effect=3D{width=3D.2,delta=3D0.3}] >> \definefallbackfamily >> [archimate] >> [ss] >> [Helvetica] >> [preset=3Drange:cyrillic, >> tf=3Dstyle:light, >> it=3Dstyle:lightoblique, >> bf=3Dstyle:regular, >> bi=3Dstyle:oblique, >> force=3Dyes, >> features=3D{effect-widen}] >=20 > features=3D{default,effect-widen}] >=20 >> \definefontfamily >> [archimate] >> [ss] >> [Optima] >> [features=3D{effect-widen}] >=20 > features=3D{default,effect-widen}] Does this apply the effect only to Latin characters in Optima and not to = Cyrcillic characters in Helvetica? I am trying to understand the syntax = and if I read this it seems to get applied to cyrillic in this case. G >=20 > Wolfgang > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > = __________________________________________________________________________= _________ --Apple-Mail=_B552E639-696B-41D9-A07D-534046BC8E1C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

On 23 May 2020, at 20:06, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:

Pablo Rodriguez schrieb am = 23.05.2020 um 20:02:
On 5/23/20 11:52 AM, Gerben Wierda = wrote:
[]
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)
Hi Gerben,
this code may work for = you:

Don't forget to apply the "default" features to get ligatures = and kerning.

    \definefontfeature
      [effect-widen]
      [effect=3D{width=3D.2,delta= =3D0.3}]
    \definefallbackfamily
      [archimate]
      [ss]
      [Helvetica]
      [preset=3Drange:cyrillic,       tf=3Dstyle:light,       it=3Dstyle:lightobliq= ue,
       bf=3Dstyle:regular,       bi=3Dstyle:oblique,       force=3Dyes,
       features=3D{effect-wi= den}]

features=3D{default,effect-widen}]

    \definefontfamily
        [archimate]
        [ss]
        [Optima]
        [features=3D{ef= fect-widen}]

features=3D{default,effect-widen}]

Does this = apply the effect only to Latin characters in Optima and not to Cyrcillic = characters in Helvetica? I am trying to understand the syntax and if I = read this it seems to get applied to cyrillic in this = case.

G



Wolfgang
_______________________________________________________________= ____________________
If your question is of interest to others as well, please add = an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl = / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/wiki     : = http://contextgarden.net
_______________________________________________________________= ____________________

= --Apple-Mail=_B552E639-696B-41D9-A07D-534046BC8E1C-- --===============3284050243914700555== 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== --===============3284050243914700555==--