Wolfgang Schuster schrieb:
Am 13.11.2008 um 16:22 schrieb Peter Rolf:
Peter Rolf schrieb:
Taco Hoekwater schrieb:
Peter Rolf wrote:
I followed that one. But my problem is more the *wrong strut height*, e.g. using a \totalstrut value of 12pt with a 8pt font. The strut height is simply not adapted to the actual font size anymore (even if I use \setstrut). I can understand why you think this is a different problem, but both struts and interline spaces depend on the value of "1ex", which has changed in an incompatible way. Perhaps you should post a complete minimal example.
But (unless the font data is really bad) we are talking about slight differences. And you can't call a 12.6pt strut for a 8pt font a slight change. :)
I will (try to) make a minimal example...
Looks like this is font related. I have tried the attached example with LM and there where no noticible differences (not at first sight). Same example with Tahoma and things go the wrong way.
The output for Tahoma in MkIV is correct but it is different from MkIV because MkII use the values for the lineheight from Latin modern and MkIV use the values from Tahoma.
\usetypescriptfile[type-microsoft-tahoma]
\usetypescript[tahoma] \setupbodyfont[10pt]
\starttext
\the\dimexpr1ex\relax
\switchtobodyfont[tahoma,10pt]
\the\dimexpr1ex\relax
\stoptext
Try \setupstrut[fit] or \setfontstrut in your document.
Sometimes I'm slow on the uptake... :D Many thanks Wolfgang!
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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________