[Webkit-unassigned] [Bug 66384] New: [Qt] QtWebKit 2.2 renders very bad-looking fonts when font-family is not specified or specified only to a generic font family like sans-serif (regression from QtWebKit 2.0)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 17 09:21:40 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=66384
Summary: [Qt] QtWebKit 2.2 renders very bad-looking fonts when
font-family is not specified or specified only to a
generic font family like sans-serif (regression from
QtWebKit 2.0)
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Linux
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebKit Qt
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: b.brachaczek at gmail.com
Created an attachment (id=104178)
--> (https://bugs.webkit.org/attachment.cgi?id=104178&action=review)
testcase
I'm using Gentoo Linux x86_64, X11. After upgrading from Qt 4.7 to 4.8-beta1 I noticed that some apps using QtWebKit started rendering very bad looking fonts. Those apps are for example Qt Assistant and Kadu IM when using its default settings. After some research I found that QWebSettings c-tor in QtWebKit 2.0 was hardcoding font families defaults that were working just fine on my system. Though in QtWebKit 2.2 the QWebSettings c-tor relies on QFont::defaultFamily() regarding default font families and that QFont method, at least on X11, hardcodes fonts that just look very bad, like bitmap fonts or something. Precisely, it is "Times" for default and serif, and "Helvetica" for sans-serif. I don't have such fonts installed on my system at all but I suppose they are somehow built into Qt as qtconfig is able to find and render them (in the same ugly way that QtWebKit does).
Attaching a simple testcase.
On a side, I also was able to confirm this issue on a clean Fedora Rawhide installation, which shows that it isn't limited only to my system.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list