I did some further experimentation, hoping using dimexp calculations would help. But either I am doing somthing wrong or I do not understand the innards of bodyfont switching well enough.
The example program seems to have accessed a 30 pt font (see the log file) but did not typeset in it, the dimexpr does evaluates to 30 pt.
Where am I at fault?
Hans van der Meer
\setuppapersize[A6][A6]
\setupbodyfont[10pt]
\starttext
10pt\ \begingroup\switchtobodyfont[20pt]20pt\endgroup\ 10pt\par
\writestatus{==============}{}
10pt\ \begingroup\switchtobodyfont[\the\dimexpr(3\bodyfontsize)] times 3\endgroup\ 10pt\par
dimexpr=\the\dimexpr(3\bodyfontsize)\par
\stoptext
fonts > 'fallback modern rm 10pt' is loaded
fonts > bodyfont '20pt' is defined (can better be done global)
fonts > bodyfont '24pt' is defined (can better be done global)
fonts > bodyfont '16pt' is defined (can better be done global)
============== >
fonts > bodyfont '30.0pt' is defined (can better be done global)
fonts > bodyfont '36pt' is defined (can better be done global)
fonts > bodyfont '24pt' is defined (can better be done global)
fonts > bodyfont '30.0pt' is defined (can better be done global)
fonts > bodyfont '30.0pt' is not defined
On 6 May 2013, at 8:57 PM, "Meer, H. van der"