Am 08.09.2010 16:50, schrieb Pavel Sanda:

Thanks this works so far, but text_metrics_.width() is always bigger than
mi.base.textwidth (on my PC it is 1.08 times bigger).

Uwe can you give a more precise description where from are the numbers 684 / 630
inside the following code? :

+ // FIXME: this is a hack to get the mi.base.textwidth but
+ // text_metrics_.width() is 1.0857 * mi.base.textwidth
+ // ( 1.0857 = 684 / 630 )
+ pi_.base.textwidth = int(0.92 * text_metrics_.width());

I need mi.base.textwidth in LineInset::draw. JMarc told me how to acces it via text_metrics_.width() in rowpainter.cpp. But
text_metrics_.width() gives 684
while mi.base.textwidth gives 630
Therefore I added as workaround the factor 684/630.

I nevertheless committed the patch hoping that this issues can be solved
soon.

i wonder who is going to do it once the code is committed :(

JMarc, Vincent, Abdel? OK, committing this hack is not perfect but it works (at least on my PC) and I assumed that some paint/draw expert can fix this in a few minutes. E.g. JMarc recently worked a lot on the painter code so that I thought... But we in general need a way to access the textwidth in draw routines, also for future features.

sorry and regards
Uwe

Reply via email to