[NTG-context] Changing font and font size inside textex
Stefan Nedeljkovic
tsar.srb at gmail.com
Mon May 30 20:46:13 CEST 2022
Dear list,
I want to be able to change the font and the font size inside a MPpage. But
if I try to prepend \switchtobodyfont to the text inside textext it doesn't
work. 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 can't figure out how to use that in MPpage.
Any help would be appreciated.
Sincerely,
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220530/8f91c9e0/attachment.htm>
More information about the ntg-context
mailing list