Bug 50539

Summary: [Qt] Report zero width for zero size fonts
Product: WebKit Reporter: Robert Hogan <robert>
Component: WebKit QtAssignee: QtWebKit Unassigned <webkit-qt-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: kling, ossy
Priority: P2 Keywords: Qt, QtTriaged
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Patch none

Robert Hogan
Reported 2010-12-05 09:45:15 PST
.
Attachments
Patch (1.80 KB, patch)
2010-12-05 09:55 PST, Robert Hogan
no flags
Robert Hogan
Comment 1 2010-12-05 09:55:25 PST
Kenneth Rohde Christiansen
Comment 2 2010-12-05 14:03:34 PST
Comment on attachment 75632 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=75632&action=review pls fix before landing > WebCore/platform/graphics/qt/FontQt.cpp:266 > + return 0.0f; this should be 0 according to the style guide > WebCore/platform/graphics/qt/FontQt.cpp:291 > + return 0.0f; here as well
Csaba Osztrogonác
Comment 3 2010-12-06 02:26:28 PST
Robert Hogan
Comment 4 2010-12-06 11:26:36 PST
Andreas/Kenneth, Is there a bit of a disconnect between Font::drawTextCommon and the actual size of the font (according to webkit)? It uses FontMetrics which may not be appropriate in the case of zero-sized fonts. I suspect QtWebKit is rendering the font full-sized rather than 'no-sized' because of this. What do you think?
Note You need to log in before you can comment on or make changes to this bug.