http://bugs.winehq.org/show_bug.cgi?id=13801
--- Comment #38 from max@veneto.com 2008-09-21 06:08:36 --- Well, some more info. The 'count' parameter (whathever its purpose is....) changes depending on text position on window... which seems to me wrong, but I'm not sure. With my example text, with text near left windows border the count is 5, going to right of window (panning cad drawing) count goes down up to 1 and at same time the text width shrinks, which IS wrong, indeed. So, there's obviously some bug BEFORE PATH_ExtTextOut() call. BTW, in PATH_ExtTextOut() there's a loop executed 'count' times that calls PATH_add_outline(); making the latter no-op speeds up drawing again, of course with no TT text displayed.
So, besides the 'slow text bug' there's at least another bug that changes text width depending on its position inside window... I'll investigate a bit more before opening a new bug report. It would be good to have a short testcase, but I'm not able to write it.
Max