Perfect, thank you very much Max!
On Sat, May 28, 2022 at 10:40 AM Max Chernoff wrote:
> On 2022-05-28 2:27 a.m., Stefan Nedeljkovic wrote:
> > One slight problem is when I use 2\measured{xheight} as the font size I
> > get an error. \measure works fine though.
>
> The old version expected direc
On 2022-05-28 2:27 a.m., Stefan Nedeljkovic wrote:
One slight problem is when I use 2\measured{xheight} as the font size I
get an error. \measure works fine though.
The old version expected direct input, not a \dimen. Try this:
\starttexdefinition setxheight [#1][#2]
\switchtobodyf
One slight problem is when I use 2\measured{xheight} as the font size I get
an error. \measure works fine though.
On Sat, May 28, 2022 at 9:34 AM Stefan Nedeljkovic
wrote:
> Awesome, thank you very much Max!
>
> On Sat, May 28, 2022 at 8:49 AM Max Chernoff wrote:
>
>> > How would one specify th
Awesome, thank you very much Max!
On Sat, May 28, 2022 at 8:49 AM Max Chernoff wrote:
> > How would one specify the font size in LMTX, but via x-height?
>
> You could try this:
>
> \starttexdefinition setxheight [#1][#2]
> \switchtobodyfont[#1, 12pt]
> \switchtobodyfont[#1
How would one specify the font size in LMTX, but via x-height?
You could try this:
\starttexdefinition setxheight [#1][#2]
\switchtobodyfont[#1, 12pt]
\switchtobodyfont[#1, \cldcontext{tex.sp"#2" / tex.sp"1ex" * tex.sp"1em" ..
"sp"}]
\stoptexdefinition
Demo:
\star
How would one specify the font size in LMTX, but via x-height? I know this
is a simple scaling, but I wonder if it could be done automatically?
Sincerely,
Stefan
___
If your question is of interest to others as well, p