* [NTG-context] Problem with letter size in \SmallCapped and enumerations
@ 2025-09-09 22:40 Matthias Weber
2025-09-10 16:05 ` [NTG-context] " Hans Hagen via ntg-context
0 siblings, 1 reply; 2+ messages in thread
From: Matthias Weber @ 2025-09-09 22:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
When I include a descriptive text in an enumeration in SmallCapped, the last letter sometimes gets somewhat large.
It only happens with alternative=serried, and only in some fonts. Below an example (thanks to Wolfgang for showing how to loop over fonts).
I use Pagella, where I first noticed it. What precisely does “serried” do?
Thanks,
Matthias
\defineenumeration
[Unserried]
[text=Unserried,
% alternative=serried,
width=fit,
title=yes,
titlestyle=normal,
prefix=yes]
\defineenumeration
[Serried]
[text=Serried,
alternative=serried,
width=fit,
title=yes,
titlestyle=normal,
prefix=yes]
\starttext
\doloopoverlist
{bonum,cambria,concrete,dejavu,ebgaramond,erewhon,kpfonts,
libertinus,lucida,modern,pagella,schola,stixtwo,termes,xcharter}
{\switchtobodyfont[\recursestring]
\recursestring:
\startUnserried{\SmallCapped{Sliding}}
\stopUnserried
\startSerried{\SmallCapped{Sliding}}
\stopSerried
\par}
\stoptext
___________________________________________________________________________________
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] 2+ messages in thread
* [NTG-context] Re: Problem with letter size in \SmallCapped and enumerations
2025-09-09 22:40 [NTG-context] Problem with letter size in \SmallCapped and enumerations Matthias Weber
@ 2025-09-10 16:05 ` Hans Hagen via ntg-context
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen via ntg-context @ 2025-09-10 16:05 UTC (permalink / raw)
To: ntg-context; +Cc: Hans Hagen
On 9/10/2025 12:40 AM, Matthias Weber wrote:
> When I include a descriptive text in an enumeration in SmallCapped, the last letter sometimes gets somewhat large.
> It only happens with alternative=serried, and only in some fonts. Below an example (thanks to Wolfgang for showing how to loop over fonts).
>
> I use Pagella, where I first noticed it. What precisely does “serried” do?
It's one of the rare situations where we unhbox something which means
that the node list gets processed twice and then the fonts kern interferes.
\showfontkerns
I will fix it (and then probably need to check a few more handlers) but
here is a quick hack (different solution) that you can put in cont-new.mkxl:
\permanent\protected\def\flushconstructionheadbox
{\ifhbox\constructionheadbox
\scratchdimen\boxrepack\constructionheadbox
\fi
\box\constructionheadbox}
which might work ok here.
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 / 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] 2+ messages in thread
end of thread, other threads:[~2025-09-10 16:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-09 22:40 [NTG-context] Problem with letter size in \SmallCapped and enumerations Matthias Weber
2025-09-10 16:05 ` [NTG-context] " Hans Hagen 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).