Issue with missing kerns when using fallback family (or KeterYG font)
Dear list, Given the Following MWE, I notice that with latest beta (does not seem to happen before) kerns are not applied in paragraph in which there are some hebrew letters. This only affects text after that hebrew letters up to end of paragraph. I use 2 fonts in sample : EBGaramond and KeterYG (can be found in various places). Thanks for advising Best regards Joseph \showfontkerns \definefontfeature[base][mode=node, kern=yes, script=latn, trep=yes] \definefontfeature[hebrew][default][mode=node, lang=heb, script=hebr] \definefallbackfamily[mainfont][serif][KeterYG][preset=range:hebrew, scale=1.0, features=hebrew] \definefontfamily[mainfont][serif][EBGaramond][features=base] \setupbodyfont[mainfont, 9pt] \def\He{\hebrewHe} \def\Tav{\hebrewTav} \def\Vav{\hebrewVav} \starttext VA c'est {\setupalign[r2l]\Tav\He\Vav} VA c'est % there is no kern between latest V and A VA c'est. % kern as expected \stoptext
On 12/30/2018 12:06 PM, Joseph Canedo wrote:
Dear list,
Given the Following MWE, I notice that with latest beta (does not seem to happen before) kerns are not applied in paragraph in which there are some hebrew letters. This only affects text after that hebrew letters up to end of paragraph.
I use 2 fonts in sample : EBGaramond and KeterYG (can be found in various places).
Thanks for advising
Best regards
Joseph
\showfontkerns
\definefontfeature[base][mode=node, kern=yes, script=latn, trep=yes]
\definefontfeature[hebrew][default][mode=node, lang=heb, script=hebr]
\definefallbackfamily[mainfont][serif][KeterYG][preset=range:hebrew, scale=1.0, features=hebrew]
\definefontfamily[mainfont][serif][EBGaramond][features=base]
\setupbodyfont[mainfont, 9pt]
\def\He{\hebrewHe}
\def\Tav{\hebrewTav}
\def\Vav{\hebrewVav}
\starttext
VA c'est {\setupalign[r2l]\Tav\He\Vav} VA c'est % there is no kern between latest V and A
VA c'est. % kern as expected
\stoptext in font-ots.lua you can find
local lefttoright = 0 local righttoleft = 1 the second line misses a 't' can you test with fixing that (i'm cleaning up a bit of directional code and upcoming betas might have more of that cleanup) 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 -----------------------------------------------------------------
The MWE case is fixed but for some weird reason the « real » typesetting is still missing the kerns in some cases. I’ll try to dig up a bit more to modify the MWE eventually. De : Hans Hagen Envoyé le :dimanche 30 décembre 2018 13:18 À : mailing list for ConTeXt users; Joseph Canedo Objet :Re: [NTG-context] Issue with missing kerns when using fallback family(or KeterYG font) On 12/30/2018 12:06 PM, Joseph Canedo wrote:
Dear list,
Given the Following MWE, I notice that with latest beta (does not seem to happen before) kerns are not applied in paragraph in which there are some hebrew letters. This only affects text after that hebrew letters up to end of paragraph.
I use 2 fonts in sample : EBGaramond and KeterYG (can be found in various places).
Thanks for advising
Best regards
Joseph
\showfontkerns
\definefontfeature[base][mode=node, kern=yes, script=latn, trep=yes]
\definefontfeature[hebrew][default][mode=node, lang=heb, script=hebr]
\definefallbackfamily[mainfont][serif][KeterYG][preset=range:hebrew, scale=1.0, features=hebrew]
\definefontfamily[mainfont][serif][EBGaramond][features=base]
\setupbodyfont[mainfont, 9pt]
\def\He{\hebrewHe}
\def\Tav{\hebrewTav}
\def\Vav{\hebrewVav}
\starttext
VA c'est {\setupalign[r2l]\Tav\He\Vav} VA c'est % there is no kern between latest V and A
VA c'est. % kern as expected
\stoptext in font-ots.lua you can find
local lefttoright = 0 local righttoleft = 1 the second line misses a 't' can you test with fixing that (i'm cleaning up a bit of directional code and upcoming betas might have more of that cleanup) 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 12/30/2018 7:03 PM, Joseph Canedo wrote:
The MWE case is fixed but for some weird reason the « real » typesetting is still missing the kerns in some cases.
I’ll try to dig up a bit more to modify the MWE eventually. ok. nothing really fundamental changed, only a different kind of housekeeping which is fixable
(and actually at some point we can do more things but that's for next year) 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 -----------------------------------------------------------------
No rush at all, I’ll try to work out another MWE or find out if anything is wrong with my typesetting. Enjoy New Year’s Eve, best wishes too to all other people in this mailing list for end of year. De : Hans Hagen Envoyé le :dimanche 30 décembre 2018 19:35 À : Joseph Canedo; mailing list for ConTeXt users Objet :Re: [NTG-context] Issue with missing kerns when using fallbackfamily(or KeterYG font) On 12/30/2018 7:03 PM, Joseph Canedo wrote:
The MWE case is fixed but for some weird reason the « real » typesetting is still missing the kerns in some cases.
I’ll try to dig up a bit more to modify the MWE eventually. ok. nothing really fundamental changed, only a different kind of housekeeping which is fixable
(and actually at some point we can do more things but that's for next year) 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 -----------------------------------------------------------------
Forgot to write, thanks a lot BTW. De : Hans Hagen Envoyé le :dimanche 30 décembre 2018 13:18 À : mailing list for ConTeXt users; Joseph Canedo Objet :Re: [NTG-context] Issue with missing kerns when using fallback family(or KeterYG font) On 12/30/2018 12:06 PM, Joseph Canedo wrote:
Dear list,
Given the Following MWE, I notice that with latest beta (does not seem to happen before) kerns are not applied in paragraph in which there are some hebrew letters. This only affects text after that hebrew letters up to end of paragraph.
I use 2 fonts in sample : EBGaramond and KeterYG (can be found in various places).
Thanks for advising
Best regards
Joseph
\showfontkerns
\definefontfeature[base][mode=node, kern=yes, script=latn, trep=yes]
\definefontfeature[hebrew][default][mode=node, lang=heb, script=hebr]
\definefallbackfamily[mainfont][serif][KeterYG][preset=range:hebrew, scale=1.0, features=hebrew]
\definefontfamily[mainfont][serif][EBGaramond][features=base]
\setupbodyfont[mainfont, 9pt]
\def\He{\hebrewHe}
\def\Tav{\hebrewTav}
\def\Vav{\hebrewVav}
\starttext
VA c'est {\setupalign[r2l]\Tav\He\Vav} VA c'est % there is no kern between latest V and A
VA c'est. % kern as expected
\stoptext in font-ots.lua you can find
local lefttoright = 0 local righttoleft = 1 the second line misses a 't' can you test with fixing that (i'm cleaning up a bit of directional code and upcoming betas might have more of that cleanup) 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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Joseph Canedo