Am 02.06.2012 um 20:13 schrieb Philipp Gesang:
Dear listmates,
with \switchtobodyfont I get the interface message “fonts:14” from mult-mes.lua (“bodyfont %s is defined (can better be done global)”) which is kinda hard to grep for :( Example:
\definebodyfont[42pt][rm][default] \starttext \switchtobodyfont [42pt] \setupbodyfont [42pt] \stoptext
Which results in:
········································································ <... /> fonts > bodyfont 42pt is defined (can better be done global) fonts > bodyfont 50.4pt is defined (can better be done global) fonts > bodyfont 40.32pt is defined (can better be done global) <... /> ········································································
(\setupbodyfont doesn’t cause it.) It seems harmless but (a) I have a conditional font change that may repeat hundreds of times over the course of a document and it clutters my terminal, and (b) it’s a warning after all, so everything is not as it is supposed to be. What’s it telling me, and why?
Add \definebodyfontenvironment: \definebodyfontenvironment[42pt] \starttext \setupbodyfont[42pt] \stoptext Wolfgang