Summary: | The underline of links with special text is longer than it should (line width calculation does not consider font kerning ?) | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Dario Andres <andresbajotierra> |
Component: | khtml | Assignee: | Konqueror Developers <konq-bugs> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | aiacovitti, bugs, laidig |
Priority: | NOR | ||
Version: | 4.8.95 (RC1) | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
Testcase
Screenshot of the bug |
Description
Dario Andres
2010-01-31 20:49:40 UTC
Created attachment 40420 [details]
Testcase
Created attachment 40421 [details]
Screenshot of the bug
Not only the underline, but the "hit box" is affected, too. See also bug 307824. khtml/rendering/font.cpp:317 (Font::width function) It seems "fast algorithm" does not always return correct string length (that's the case of the reported testcase). That's is the sum of the single char with (QFontMetrics::width(QChar)) of the string does't always match the length of the string (QFontMetrics::width(QString,..)). ... and the reason why "fast algorithm" was introduced is stated in comment at the beginning of Font::width function (major speed regression in qt4 compared to qt3) |