Peter Rolf wrote:
> 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.

nothing wrong ... it's just that afm2tfm (or whatever you use for mkii) 
uses some funny method for calculating the ex height

in mkiv we use the xheight spec from the font (defined in the font in 
this case) or the height of an 'x'

\showstruts
2.8ex: \the\dimexpr2.8ex\par
\strut qgjyQWT\par
1ex: \the\dimexpr 1ex\par
\setbox0\hbox{x}ht(x):\the\ht0\par
2.8*ht(x): \the\dimexpr2.8\ht0

if you look at the font it's pretty clear that it has a large x-height 
so you can best use a different interline specification, like

x\strut qgjyQWT\par
\setupinterlinespace[line=1.2\bodyfontsize]
x\strut qgjyQWT\par

you might even want to change the height:depth ratio (keep in mind that 
we cannot predict these things, so it always is a matter of tuning

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to