ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* issue with font features
@ 2018-07-24 16:20 Pablo Rodriguez
  2018-07-24 17:02 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez @ 2018-07-24 16:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: issue with font features
  2018-07-24 16:20 issue with font features Pablo Rodriguez
@ 2018-07-24 17:02 ` Hans Hagen
  2018-07-24 19:24   ` Pablo Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2018-07-24 17:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: issue with font features
  2018-07-24 17:02 ` Hans Hagen
@ 2018-07-24 19:24   ` Pablo Rodriguez
  2018-07-24 19:52     ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez @ 2018-07-24 19:24 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: issue with font features
  2018-07-24 19:24   ` Pablo Rodriguez
@ 2018-07-24 19:52     ` Hans Hagen
  2018-07-24 20:40       ` Pablo Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2018-07-24 19:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: issue with font features
  2018-07-24 19:52     ` Hans Hagen
@ 2018-07-24 20:40       ` Pablo Rodriguez
  0 siblings, 0 replies; 5+ messages in thread
From: Pablo Rodriguez @ 2018-07-24 20:40 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-07-24 20:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-24 16:20 issue with font features Pablo Rodriguez
2018-07-24 17:02 ` Hans Hagen
2018-07-24 19:24   ` Pablo Rodriguez
2018-07-24 19:52     ` Hans Hagen
2018-07-24 20:40       ` Pablo Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).