ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Missing font features in page header if \feature[-] is used in header text
@ 2018-05-30 12:31 Joseph Canedo
  2018-05-30 14:17 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Joseph Canedo @ 2018-05-30 12:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 844 bytes --]

Dear list,

Provided MWE below I notice that font features seem ignored in page header rendering. Anything I am doing wrong ?
Rendering is fine if \headerok is used.

Any help would be appreciated.

Thanks
Best regards

Joseph

\definefontfeature[base][mode=node, liga=yes, dlig=yes, hlig=yes, kern=yes]
\definefontfeature[xvicentury][]

\definefontfamily[mainfont][serif][EBGaramond][features=base]

\setupbodyfont[mainfont, 9pt]

\showfontkerns

\def\wrongheader{First book {\feature[-][xvicentury]v} Psalme De David.} %% \feature[-] seems to cause problems in header
\def\headerok{First book v Psalme De David.}

\setupheadertexts[\wrongheader] %% kern/ligatures missing <---
% \setupheadertexts[\headerok] %% kern/ligatures ok <---

\starttext

\wrongheader %% all ok in main text

\headerok

\stoptext


[-- Attachment #1.2: Type: text/html, Size: 3019 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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: Missing font features in page header if \feature[-] is used in header text
  2018-05-30 12:31 Missing font features in page header if \feature[-] is used in header text Joseph Canedo
@ 2018-05-30 14:17 ` Hans Hagen
  2018-05-30 14:26   ` Missing font features in page header if \feature[-]is " Joseph Canedo
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2018-05-30 14:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Joseph Canedo

On 5/30/2018 2:31 PM, Joseph Canedo wrote:
> Dear list,
> 
> Provided MWE below I notice that font features seem ignored in page 
> header rendering. Anything I am doing wrong ?
> 
> Rendering is fine if \headerok is used.
> 
> Any help would be appreciated.
> 
> Thanks
> 
> Best regards
> 
> Joseph
> 
> \definefontfeature[base][mode=node, liga=yes, dlig=yes, hlig=yes, kern=yes]
> 
> \definefontfeature[xvicentury][]
> 
> \definefontfamily[mainfont][serif][EBGaramond][features=base]
> 
> \setupbodyfont[mainfont, 9pt]
> 
> \showfontkerns
> 
> \def\wrongheader{First book {\feature[-][xvicentury]v} Psalme De David.} 
> %% \feature[-] seems to cause problems in header
> 
> \def\headerok{First book v Psalme De David.}
> 
> \setupheadertexts[\wrongheader] %% kern/ligatures missing <---
> 
> % \setupheadertexts[\headerok] %% kern/ligatures ok <---
> 
> \starttext
> 
> \wrongheader %% all ok in main text
> 
> \headerok
> 
> \stoptext
you can put this in cont-new.mkiv after \unprotect

\unexpanded\def\resetglobalattributes{\the\t_attr_list_global\attribute\zerocount\zerocount}
\unexpanded\def\resetlocalattributes {\the\t_attr_list_local 
\attribute\zerocount\zerocount}

\let\resetallattributes\resetlocalattributes




-----------------------------------------------------------------
                                           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: Missing font features in page header if \feature[-]is used in header text
  2018-05-30 14:17 ` Hans Hagen
@ 2018-05-30 14:26   ` Joseph Canedo
  0 siblings, 0 replies; 5+ messages in thread
From: Joseph Canedo @ 2018-05-30 14:26 UTC (permalink / raw)
  To: Hans Hagen, mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1884 bytes --]

Thanks a lot Hans for your prompt response.

De : Hans Hagen
Envoyé le :mercredi 30 mai 2018 16:17
À : mailing list for ConTeXt users; Joseph Canedo
Objet :Re: [NTG-context] Missing font features in page header if \feature[-]is used in header text

On 5/30/2018 2:31 PM, Joseph Canedo wrote:
> Dear list,
> 
> Provided MWE below I notice that font features seem ignored in page 
> header rendering. Anything I am doing wrong ?
> 
> Rendering is fine if \headerok is used.
> 
> Any help would be appreciated.
> 
> Thanks
> 
> Best regards
> 
> Joseph
> 
> \definefontfeature[base][mode=node, liga=yes, dlig=yes, hlig=yes, kern=yes]
> 
> \definefontfeature[xvicentury][]
> 
> \definefontfamily[mainfont][serif][EBGaramond][features=base]
> 
> \setupbodyfont[mainfont, 9pt]
> 
> \showfontkerns
> 
> \def\wrongheader{First book {\feature[-][xvicentury]v} Psalme De David.} 
> %% \feature[-] seems to cause problems in header
> 
> \def\headerok{First book v Psalme De David.}
> 
> \setupheadertexts[\wrongheader] %% kern/ligatures missing <---
> 
> % \setupheadertexts[\headerok] %% kern/ligatures ok <---
> 
> \starttext
> 
> \wrongheader %% all ok in main text
> 
> \headerok
> 
> \stoptext
you can put this in cont-new.mkiv after \unprotect

\unexpanded\def\resetglobalattributes{\the\t_attr_list_global\attribute\zerocount\zerocount}
\unexpanded\def\resetlocalattributes {\the\t_attr_list_local 
\attribute\zerocount\zerocount}

\let\resetallattributes\resetlocalattributes




-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


[-- Attachment #1.2: Type: text/html, Size: 5052 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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: Missing font features in page header if \feature[-] is used in header text
  2019-04-14 16:20 Missing font features in page header if \feature[-] is " Joseph Canedo
@ 2019-04-15  9:03 ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2019-04-15  9:03 UTC (permalink / raw)
  To: Joseph Canedo,
	ntg-context@ntg.nl >> mailing list for ConTeXt users

On 4/14/2019 6:20 PM, Joseph Canedo wrote:
> Dear list,
> 
> With latest ConTeXt beta (13-04-2019) I notice that font features seem 
> ignored in page header rendering. (missing kern between Ps in « Psalme » 
> and different Th in « Thimothee ».
> 
> Anything I am doing wrong ?
fixed in next beta

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

* Missing font features in page header if \feature[-] is used in header text
@ 2019-04-14 16:20 Joseph Canedo
  2019-04-15  9:03 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Joseph Canedo @ 2019-04-14 16:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 979 bytes --]

Dear list,

With latest ConTeXt beta (13-04-2019) I notice that font features seem ignored in page header rendering. (missing kern between Ps in « Psalme » and different Th in « Thimothee ».

Anything I am doing wrong ?
Rendering is fine if \headerok is used.
 
Any help would be appreciated.
 
Thanks
Best regards
 
Joseph

\definefontfeature[base][mode=node, liga=yes, dlig=yes, hlig=yes, kern=yes]
\definefontfeature[xvicentury][]
 
\definefontfamily[mainfont][serif][EBGaramond][features=base]
 
\setupbodyfont[mainfont, 9pt]
 
\showfontkerns
 
\def\wrongheader{First book {\feature[-][xvicentury]v} Psalme De David. Thimothee.} %% \feature[-] seems to cause problems in header
\def\headerok{First book v Psalme De David. Thimothee.}
 
\setupheadertexts[\wrongheader] %% kern/ligatures missing <---
% \setupheadertexts[\headerok] %% kern/ligatures ok <---
 
\starttext
 
\wrongheader %% all ok in main text
 
\headerok
 
\stoptext

[-- Attachment #1.2: Type: text/html, Size: 3225 bytes --]

[-- Attachment #2: mwe_header.pdf --]
[-- Type: application/pdf, Size: 8341 bytes --]

[-- Attachment #3: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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:[~2019-04-15  9:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-30 12:31 Missing font features in page header if \feature[-] is used in header text Joseph Canedo
2018-05-30 14:17 ` Hans Hagen
2018-05-30 14:26   ` Missing font features in page header if \feature[-]is " Joseph Canedo
2019-04-14 16:20 Missing font features in page header if \feature[-] is " Joseph Canedo
2019-04-15  9:03 ` Hans Hagen

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).