Re: [NTG-context] Specifying font size as x-height

2022-05-28 Thread Stefan Nedeljkovic via ntg-context
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

Re: [NTG-context] Specifying font size as x-height

2022-05-28 Thread Max Chernoff via ntg-context
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

Re: [NTG-context] Specifying font size as x-height

2022-05-28 Thread Stefan Nedeljkovic via ntg-context
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

Re: [NTG-context] Specifying font size as x-height

2022-05-28 Thread Stefan Nedeljkovic via ntg-context
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

Re: [NTG-context] Specifying font size as x-height

2022-05-27 Thread Max Chernoff via ntg-context
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

[NTG-context] Specifying font size as x-height

2022-05-27 Thread Stefan Nedeljkovic via ntg-context
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