Thank you, I'll try that later.
On Tue, May 31, 2022 at 9:42 AM Max Chernoff wrote:
> > Thanks Max that works perfectly! But It would still be useful if I could
> > change families inside a MPpage.
>
> Sure, but you'll need to store the x-heights first:
>
> \starttexdefinition storexheight
Thanks Max that works perfectly! But It would still be useful if I could
change families inside a MPpage.
Sure, but you'll need to store the x-heights first:
\starttexdefinition storexheight [#1]
% Placing the first use of \switchtobodyfont inside a group messes
% with the d
Thanks Max that works perfectly! But It would still be useful if I could
change families inside a MPpage.
On Tue, May 31, 2022 at 1:31 AM Max Chernoff wrote:
> > I'm using the following macro to set the font size via h-height:
> >
> > \starttexdefinition setxheight [#1][#2]
> > \switchtobody
I'm using the following macro to set the font size via h-height:
\starttexdefinition setxheight [#1][#2]
\switchtobodyfont[#1, 12pt]
\scratchdimen=\dimexpr#2\relax
\switchtobodyfont[#1, \cldcontext{tex.dimen.scratchdimen / tex.sp"1ex"
* tex.sp"1em" .. "sp"}]
\stoptexdefinition
But I