Hi Wolfgang!
···
········································································ \definebodyfontenvironment[42.0pt] %% a dozen times \starttext \switchtobodyfont[42.0pt] %% hundreds of times %\switchtobodyfont[42pt] %% <- this works, though foo \stoptext ········································································
Which then results in this warning: ········································································ fonts > bodyfont 42.0pt is defined (can better be done global) ········································································
Although the size has been „defined“. My problem appears to be that I’m abusing dimensions as makeshift floats to calculate relative font sizes, interlinespace etc. via \dimexpr.
???
It’s about decrementing font size and interlinespace until the content fits a predefined box. https://bitbucket.org/phg/context-stellen/src/3568dc7470fa/tex/context/third...
Hadn’t thought about \switchtobodyfont expecting integers.
Don’t know what’s the problem but the message doesn’t appear when you use for example 42.1pt.
That’s odd. But this way it seems to do the right thing as performance improves drastically (as much as 30%). Thanks Philipp
Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments