weird behavior of font.feature.effect
Dear List, I'm confused by the result of the following example (see attached): \definefontfamily[face1][rm][gabriola][it={features:{default}}] \definefontfamily[face2][rm][gabriola][it={features:{default, effect={}}}] \definefontfamily[face3][rm][gabriola][it={features:{default, effect={width=1.0}}}] \starttext \startitemize[n, packed] \item \switchtobodyfont[face1]\it\dorecurse{100}{a b c } \item \switchtobodyfont[face2]\it\dorecurse{100}{a b c } \item \switchtobodyfont[face3]\it\dorecurse{100}{a b c } \stopitemize \stoptext Could someone explain: 1. What does "effect" mean? Why does "effect={}" embolden the fonts even though nothing ({}) is given as arguments? 2. Similarly, what does "width" do? Why does "width=1.0" shrink the width of the line instead of doing nothing? Thanks in advance. Best, Sylvain
On 11/8/20 12:57 AM, Sylvain Hubert wrote:
Dear List,
I'm confused by the result of the following example (see attached):
\definefontfamily[face1][rm][gabriola][it={features:{default}}]
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={features:{default, effect={}}}] \definefontfamily[face3][rm][gabriola][it={features:{default, effect={width=1.0}}}]
BTW, the documentation is clear (http://texdoc.net/texmf-dist/doc/context/presentations/bachotex/2018/bachote...): 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={}" embolden the fonts even though nothing ({}) is given as arguments? "effect={}" 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=1.0" shrink the width of the line instead of doing nothing?
This might be a bug, because of all the code improvements. I’m reporting a proper bug. Pablo -- http://www.ousia.tk
On Sun, 8 Nov 2020 at 11:24, Pablo Rodriguez
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={features:{default, effect={}}}] \definefontfamily[face3][rm][gabriola][it={features:{default, effect={width=1.0}}}]
BTW, the documentation is clear ( http://texdoc.net/texmf-dist/doc/context/presentations/bachotex/2018/bachote... ): 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={}" embolden the fonts even though nothing ({}) is given as arguments? "effect={}" 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=1.0" shrink the width of the line instead of doing nothing?
This might be a bug, because of all the code improvements.
I’m 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=0": \definefontfamily[face3][rm][gabriola][it={features:{default, effect={width=1.0, delta=0}}}] Sylvain
Sylvain Hubert schrieb am 08.11.2020 um 13:02:
On Sun, 8 Nov 2020 at 11:24, Pablo Rodriguez
mailto:oinos@gmx.es> 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={features:{default, > effect={}}}] > \definefontfamily[face3][rm][gabriola][it={features:{default, > effect={width=1.0}}}]
BTW, the documentation is clear (http://texdoc.net/texmf-dist/doc/context/presentations/bachotex/2018/bachote...): 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={}" embolden the fonts even though nothing ({}) is > given as arguments? "effect={}" 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=1.0" shrink the > width of the line instead of doing nothing?
This might be a bug, because of all the code improvements.
I’m 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=0":
\definefontfamily[face3][rm][gabriola][it={features:{default, effect={width=1.0, delta=0}}}]
Don't set the values within \definefontfamily: \definefontfeature [myfeature] [effect={width=1.0, delta=0}] \definefontfamily[face3][rm][gabriola][it={features:{default,myfeature}}] Wolfgang
participants (3)
-
Pablo Rodriguez
-
Sylvain Hubert
-
Wolfgang Schuster