[NTG-context] “bodyfont %s is defined (can better be done global)”

Philipp Gesang gesang at stud.uni-heidelberg.de
Sat Jun 2 20:13:47 CEST 2012


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?

Philipp


-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20120602/a2c3f096/attachment.pgp>


More information about the ntg-context mailing list