From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109381 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sylvain Hubert Newsgroups: gmane.comp.tex.context Subject: Re: weird behavior of font.feature.effect Date: Sun, 8 Nov 2020 13:02:50 +0100 Message-ID: References: <96fa3c26-6616-8ccc-a5a1-f08c7bd20a3f@gmx.es> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8611969221654591799==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3631"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 08 13:05:30 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 1kbjRq-0000oN-FR for gctc-ntg-context-518@m.gmane-mx.org; Sun, 08 Nov 2020 13:05:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9AFB41A9D0B; Sun, 8 Nov 2020 13:03:05 +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 69OOxtDnKw9v; Sun, 8 Nov 2020 13:03:04 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B6AE71A9F53; Sun, 8 Nov 2020 13:03:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 52E9E1A9F53 for ; Sun, 8 Nov 2020 13:03:03 +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 72Rr30yUfggs for ; Sun, 8 Nov 2020 13:03:02 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.170; helo=mail-il1-f170.google.com; envelope-from=champignoom@gmail.com; receiver= Original-Received: from mail-il1-f170.google.com (mail-il1-f170.google.com [209.85.166.170]) (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 4CCFF1A9D0B for ; Sun, 8 Nov 2020 13:03:02 +0100 (CET) Original-Received: by mail-il1-f170.google.com with SMTP id a20so5739148ilk.13 for ; Sun, 08 Nov 2020 04:03:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=YhhwrcSDwsPRszD8Eds3QNEbsPupITwYda6QO678nes=; b=gqFVMuXfTtksxk2bQLsOZDnqjH8gvkvgLMvqtzZ7H9sYah7J878CHdLKuksruHYIzh vUGZ7XtrpJrw2/py1PAg/jqUshFSiqxD3xhCGQW5Pl/ieu2SUpEU29KFZI7XzQbh0dQv CR5u0pW2gu1IfNP2ThGTSMOidMm3DxScYTxjphJy1e86hkhnUMUe3W7fEDYlMFGzL80i VqBk5CPoYiluQiWuKCrRiq+KnlVmNGSJS6qphTpv/kC0nUDi3co+vf7iYCGqKVN1H2rk iffHQugPIWfdqaUKw/+J+k4DHT90OR4OM9NMXnQA71cQlBhAveP8mC1VCWtFJ7mzaDVe smug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=YhhwrcSDwsPRszD8Eds3QNEbsPupITwYda6QO678nes=; b=cQKKPcFByGPHCwl5bugBtkCl1EP3mDRE9EFMPCY7OI1le3UwGHPCPxGmyYyogXTHrC VsUX/tPpjGmS3H5Z4KQBEmIqnshYjrWIOwuBSeR44LT+Nysmod/u7HBB/z46skxVMZTX bPPdAgyxgiS4iE7D6G/NCn9l9jZ9pT9ivnWKQDijvWQXIPlE5+fKZeUwsbuKijTRoYQv dy5BTjdp0wtqNA3qS8X49u0THsLmv+VyrjJTZoWkQaGwqxwviNtG92YAKKhwkwk8TRcD dE01lTbeuMY31L+muVVQjEFqykB7qEHigXQ9+v9dDLOf0cyuSklMGnxpkwjoq3qLNr53 lI8w== X-Gm-Message-State: AOAM533H48+MKCVQ/xZ7qzOQ+ls6BZfpdkctMaRgIhfgpjT6Uh7SaIHC JBCAL6HSaumv1SBZ0t9qI8mpKN++7pwk6NPLKtKxIX6GVp+QtQ== X-Google-Smtp-Source: ABdhPJwIrGJiWis5oWx1dLxVA4/7q4dXNCCjiRJcwEBPUKJUmcrD/WnUNVuCP2GKuu6kgpQ6hQePLsH3k/JPKjdmUCs= X-Received: by 2002:a05:6e02:1049:: with SMTP id p9mr1736308ilj.102.1604836981152; Sun, 08 Nov 2020 04:03:01 -0800 (PST) In-Reply-To: <96fa3c26-6616-8ccc-a5a1-f08c7bd20a3f@gmx.es> 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:109381 Archived-At: --===============8611969221654591799== Content-Type: multipart/alternative; boundary="0000000000002f200005b3973ace" --0000000000002f200005b3973ace Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 8 Nov 2020 at 11:24, Pablo Rodriguez wrote: > Hi Sylvain, > > this is the same as: > > \definefontfamily[face1][rm][gabriola] > > Just in case, "slanted" is an already defined feature. It slants the font= . > > > \definefontfamily[face2][rm][gabriola][it=3D{features:{default, > > effect=3D{}}}] > > \definefontfamily[face3][rm][gabriola][it=3D{features:{default, > > effect=3D{width=3D1.0}}}] > > BTW, the documentation is clear > ( > http://texdoc.net/texmf-dist/doc/context/presentations/bachotex/2018/bach= otex-2018-fonteffects.pdf#search=3Dfontfeature > ): > font features should be defined as such before being deployed. > > > Could someone explain: > > I will try from what I understand. > > > 1. What does "effect" mean? > > A ConTeXt (and not OpenType) font feature? > > > Why does "effect=3D{}" embolden the fonts even though nothing ({}) is > > given as arguments? > "effect=3D{}" may be reading default values (it might be intended behavio= r > or not). > > But it also could be reading or calculating from previously defined value= s. > > > 2. Similarly, what does "width" do? Why does "width=3D1.0" shrink the > > width of the line instead of doing nothing? > > This might be a bug, because of all the code improvements. > > I=E2=80=99m reporting a proper bug. > Thank you very much for the explanation and the bug report! Just in case it helps: the line shrinking disappears with an additional "delta=3D0": \definefontfamily[face3][rm][gabriola][it=3D{features:{default, effect=3D{width=3D1.0, delta=3D0}}}] Sylvain --0000000000002f200005b3973ace Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, 8 Nov 2020 at 11:24, Pablo Rodriguez <oinos@gmx.es> wrote:
Hi Sylvain,

this is the same as:

=C2=A0 \definefontfamily[face1][rm][gabriola]

Just in case, "slanted" is an already defined feature. It slants = the font.

> =C2=A0 =C2=A0 \definefontfamily[face2][rm][gabriola][it=3D{features:{d= efault,
> effect=3D{}}}]
> =C2=A0 =C2=A0 \definefontfamily[face3][rm][gabriola][it=3D{features:{d= efault,
> effect=3D{width=3D1.0}}}]

BTW, the documentation is clear
(http://texdoc.net/texmf-dist/doc/context/presentations/= bachotex/2018/bachotex-2018-fonteffects.pdf#search=3Dfontfeature):
font features should be defined as such before being deployed.

> Could someone explain:

I will try from what I understand.

> 1. What does "effect" mean?

A ConTeXt (and not OpenType) font feature?

> Why does "effect=3D{}" embolden the fonts even though nothin= g ({}) is
> given as arguments?
"effect=3D{}" may be reading default values (it might be intended= behavior
or not).

But it also could be reading or calculating from previously defined values.=

> 2. Similarly, what does "width" do? Why does "width=3D1= .0" shrink the
> width of the line instead of doing nothing?

This might be a bug, because of all the code improvements.

I=E2=80=99m reporting a proper bug.

Tha= nk you very much for the explanation and the bug report!

Just in case it helps: the line shrinking disappears with an additio= nal "delta=3D0":

=C2=A0 =C2=A0 \definefo= ntfamily[face3][rm][gabriola][it=3D{features:{default, effect=3D{width=3D1.= 0, delta=3D0}}}]

Sylvain
--0000000000002f200005b3973ace-- --===============8611969221654591799== 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== --===============8611969221654591799==--