Hi,
playing around with \definebodyfontenvironment with latest LMTX,
I found this possibly buggy behavior:
\definebodyfontenvironment[12pt][small=6pt] % x=6pt works here
\setupbodyfont[12pt]
\starttext
normal {\tx tx} {\small small}
\stoptext
With \definebodyfontenvironment[12pt][x=6pt] I can resize \tx fine,
but for \small it doesn't work.
--
Leah Neukirchen
On 10/21/22 00:59, Leah Neukirchen via ntg-context wrote:
Hi,
playing around with \definebodyfontenvironment with latest LMTX, I found this possibly buggy behavior:
\definebodyfontenvironment[12pt][small=6pt] % x=6pt works here \setupbodyfont[12pt] \starttext normal {\tx tx} {\small small} \stoptext
With \definebodyfontenvironment[12pt][x=6pt] I can resize \tx fine, but for \small it doesn't work.
Hi Leah, I don’t know whether it may be a bug, but this works: \definebodyfont[12pt] \definebodyfontenvironment[12pt][small=100pt, x=100pt] \setupbodyfont[12pt] \starttext normal {\tx tx} {\small small} \stoptext It might be that \small could be hardcoded by default. Sorry for changing sizes, but I wanted to know for sure it was working. Just in case it might help, Pablo
On 10/21/2022 12:59 AM, Leah Neukirchen via ntg-context wrote:
Hi,
playing around with \definebodyfontenvironment with latest LMTX, I found this possibly buggy behavior:
\definebodyfontenvironment[12pt][small=6pt] % x=6pt works here \setupbodyfont[12pt] \starttext normal {\tx tx} {\small small} \stoptext
With \definebodyfontenvironment[12pt][x=6pt] I can resize \tx fine, but for \small it doesn't work. it has to do with the fact that we have font clases and some parameters are bound to it.
\setupbodyfontenvironment [pagella] [12pt] [x=4pt, small=4pt] \setupbodyfont[pagella,12pt] \starttext normal {\tx tx} {\small small} \stoptext that will work. You can say \fontclass to see what you got after a \setupbodyfont. I'll add \setupbodyfontenvironment [all] [12pt] [x=4pt, small=4pt] as option (assuming we have no performance hit). x xx : dynamic small big : more static (trigger some definitions) when we decide to go 'compact fonts' we can review this. We can then also decide to get rid of the old design size subsystem (only lm uses it unless one does 'modern' and there are other ways.) 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 -----------------------------------------------------------------
Hans Hagen via ntg-context
I'll add
\setupbodyfontenvironment [all] [12pt] [x=4pt, small=4pt]
as option (assuming we have no performance hit).
It would also be nice to be able to
\setupbodyfontenvironment[all][default][x=0.8]
(I solved my actual problem by adding a new custom fontsize with
\definefontsize, as it's not really \small but something else.)
--
Leah Neukirchen
participants (3)
-
Hans Hagen
-
Leah Neukirchen
-
Pablo Rodriguez