* [NTG-context] issue mixing font features (LMTX & MkIV)
@ 2024-03-03 10:54 Pablo Rodriguez via ntg-context
2024-03-04 10:09 ` [NTG-context] " Hans Hagen via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2024-03-03 10:54 UTC (permalink / raw)
To: ConTeXt users; +Cc: Pablo Rodriguez
Dear list,
I have the following sample:
\definefontfeature[wider][extend=2]
\definefontfamily[mainface][rm][TeX Gyre Pagella]
[features={default, quality, wider},
it={style: regular, features:{default, slanted, quality}},
bf={style: regular, features:{default, boldened-30}},
bi={style: regular, features:{default, boldened-30, slanted}}]
\setupbodyfont
[mainface, 30pt]
\starttext
\startTEXpage[offset=1ex]
a
{\it a}\\
{\bf a}
{\bi a}
\stopTEXpage
\stoptext
With current latest (2024.02.27 09:21), LuaTeX gets boldened and slanted
for regular (but the other fonts cannot inherit the wider feature and
wider will not mix with boldened-30 [even when specified]).
For some reason, LMTX from current latest cannot get slanted and
boldened-30 (but it mixes the inherited wider feature in all fonts).
This began to behave differently in latest from 2024.01.08 11:23 (which
is my next version after the one from 2023.09.26 18:19).
Could anyone confirm the issue?
Many thanks for your help,
Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* [NTG-context] Re: issue mixing font features (LMTX & MkIV)
2024-03-03 10:54 [NTG-context] issue mixing font features (LMTX & MkIV) Pablo Rodriguez via ntg-context
@ 2024-03-04 10:09 ` Hans Hagen via ntg-context
2024-03-04 18:30 ` Pablo Rodriguez via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen via ntg-context @ 2024-03-04 10:09 UTC (permalink / raw)
To: Pablo Rodriguez via ntg-context; +Cc: Hans Hagen
On 3/3/2024 11:54 AM, Pablo Rodriguez via ntg-context wrote:
> Dear list,
>
> I have the following sample:
>
> \definefontfeature[wider][extend=2]
>
> \definefontfamily[mainface][rm][TeX Gyre Pagella]
> [features={default, quality, wider},
> it={style: regular, features:{default, slanted, quality}},
> bf={style: regular, features:{default, boldened-30}},
> bi={style: regular, features:{default, boldened-30, slanted}}]
>
> \setupbodyfont
> [mainface, 30pt]
>
> \starttext
> \startTEXpage[offset=1ex]
> a
> {\it a}\\
> {\bf a}
> {\bi a}
> \stopTEXpage
> \stoptext
>
> With current latest (2024.02.27 09:21), LuaTeX gets boldened and slanted
> for regular (but the other fonts cannot inherit the wider feature and
> wider will not mix with boldened-30 [even when specified]).
>
> For some reason, LMTX from current latest cannot get slanted and
> boldened-30 (but it mixes the inherited wider feature in all fonts).
>
> This began to behave differently in latest from 2024.01.08 11:23 (which
> is my next version after the one from 2023.09.26 18:19).
>
> Could anyone confirm the issue?
accumulating these effects is dependent on how the features that you use
are defined
in luametatex we have a bit more advanced mechanism (also relates to
compact mode) because th eengine is a bit more clever
just make sure that you don't add up features where one calcels the
other, so use for instance:
\definefontfeature[wide] [extend=2]
\definefontfeature[wideslant] [extend=2,slant=.2]
\definefontfeature[widebold] [extend=2,weight=.1]
\definefontfeature[wideboldslant][extend=2,weight=.1,slant=.2]
\definefontfamily[mainface][rm][TeX Gyre Pagella]
[tf={style:regular,features:{default,quality,wide}},
it={style:regular,features:{default,quality,wideslant}},
bf={style:regular,features:{default,quality,widebold}},
bi={style:regular,features:{default,quality,wideboldslant}}]
\setupbodyfont
[mainface,30pt]
\starttext
\startTEXpage[offset=1ex]
a
{\it a}
{\bf a}
{\bi a}
\stopTEXpage
\stoptext
-----------------------------------------------------------------
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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* [NTG-context] Re: issue mixing font features (LMTX & MkIV)
2024-03-04 10:09 ` [NTG-context] " Hans Hagen via ntg-context
@ 2024-03-04 18:30 ` Pablo Rodriguez via ntg-context
0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2024-03-04 18:30 UTC (permalink / raw)
To: Hans Hagen via ntg-context; +Cc: Pablo Rodriguez
On 3/4/24 11:09, Hans Hagen via ntg-context wrote:
> [...]
> in luametatex we have a bit more advanced mechanism (also relates to
> compact mode) because th eengine is a bit more clever
>
> just make sure that you don't add up features where one calcels the
> other, so use for instance:
Many thanks for the explanation and the fix, Hans.
It seems that the engine is becoming too smart for me 😅.
Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-03-05 11:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-03 10:54 [NTG-context] issue mixing font features (LMTX & MkIV) Pablo Rodriguez via ntg-context
2024-03-04 10:09 ` [NTG-context] " Hans Hagen via ntg-context
2024-03-04 18:30 ` Pablo Rodriguez via ntg-context
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).