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]
        \switchtobodyfont[#1, 12pt]
        \switchtobodyfont[#1, \cldcontext{tex.dimen.scratchdimen / tex.sp"1ex" * 
tex.sp"1em" .. "sp"}]


        \setxheight[adventor][10\measured{xheight}] Hello!

-- Max
If your question is of interest to others as well, please add an entry to the 

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net

Reply via email to