issue with font features
Dear list, I have the following sample: \definefontfeature[effect]%[effect=.2] [effect={width=.3,delta=0.4,factor=0.3}] \definefontfeature[oldle][onum=yes] \setupbodyfont[palatino] \starttext {\feature[+][effect]1234567890} 1234567890 {\feature[+][oldle]1234567890} \stoptext I wonder why the first font feature ("effect") doesn’t work. What am I missing? Many thanks for your help, Pablo -- http://www.ousia.tk
On 7/24/2018 6:20 PM, Pablo Rodriguez wrote:
Dear list,
I have the following sample:
\definefontfeature[effect]%[effect=.2] [effect={width=.3,delta=0.4,factor=0.3}]
\definefontfeature[oldle][onum=yes]
\setupbodyfont[palatino]
\starttext {\feature[+][effect]1234567890} 1234567890 {\feature[+][oldle]1234567890} \stoptext
I wonder why the first font feature ("effect") doesn’t work. What am I missing? because effects are not regular features so you need to create a new instance (which makes sense as you cannot turn a regular font into an italic or bold one either this way)
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 07/24/2018 07:02 PM, Hans Hagen wrote:
On 7/24/2018 6:20 PM, Pablo Rodriguez wrote:
[...] \starttext {\feature[+][effect]1234567890} 1234567890 {\feature[+][oldle]1234567890} \stoptext
I wonder why the first font feature ("effect") doesn’t work. What am I missing? because effects are not regular features so you need to create a new instance (which makes sense as you cannot turn a regular font into an italic or bold one either this way)
Many thanks for your explanation, Hans. The new font instance is what I was missing in many of the issues I had with features. Many thanks for your help, Pablo -- http://www.ousia.tk
On 7/24/2018 9:24 PM, Pablo Rodriguez wrote:
On 07/24/2018 07:02 PM, Hans Hagen wrote:
On 7/24/2018 6:20 PM, Pablo Rodriguez wrote:
[...] \starttext {\feature[+][effect]1234567890} 1234567890 {\feature[+][oldle]1234567890} \stoptext
I wonder why the first font feature ("effect") doesn’t work. What am I missing? because effects are not regular features so you need to create a new instance (which makes sense as you cannot turn a regular font into an italic or bold one either this way)
Many thanks for your explanation, Hans.
The new font instance is what I was missing in many of the issues I had with features. hm, only with those that affect the glyph shapes in some way, not with normal otf kind of features i assume
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 07/24/2018 09:52 PM, Hans Hagen wrote:
On 7/24/2018 9:24 PM, Pablo Rodriguez wrote:
[...] The new font instance is what I was missing in many of the issues I had with features. hm, only with those that affect the glyph shapes in some way, not with normal otf kind of features i assume
Sorry, Hans, but I don’t remember. These two months are being demanding and my memory is far from being perfect. I think my problems were related to glyph shapes. But in any case, if I detect what I think it might be a bug, rest assured I’ll report it. Pablo -- http://www.ousia.tk
participants (2)
-
Hans Hagen
-
Pablo Rodriguez