>>>>> "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes:

Enrico> I found the rules in appendix G and I think that they could be
Enrico> applied. However I stumbled over a problem. The ascent()
Enrico> method in mathed doesn't correctly report ascent values less
Enrico> than the ascent of a capital 'I'. Indeed, all these values are
Enrico> reported as the ascent of a capital 'I'. This seems to be by
Enrico> design and not the result of a bug. I tried replacing

Enrico>          dim_ = theFontMetrics(mi.base.font).dimension('I');
Enrico> with dim_ = theFontMetrics(mi.base.font).dimension('x');

Enrico> in MathData.C in an attempt to have the ascent value of an 'x'
Enrico> as the minimum reported value, but then all the place holders
Enrico> in mathed shrinked to the height of an 'x'...

you could add a parameter to the method (with default value 'I').

JMarc

Reply via email to