[Webkit-unassigned] [Bug 32186] New: [Qt] Changing default font from Arial/Times New Roman/fixed to sans-serif, serif, monospace appears to save 400msec on loading

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Dec 5 17:16:11 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=32186

           Summary: [Qt] Changing default font from Arial/Times New
                    Roman/fixed to sans-serif, serif, monospace appears to
                    save 400msec on loading
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Platform
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: zecke at selfish.org
                CC: hausmann at webkit.org


In the Maxwell_Equations article the painting/layout code is blocking the event
loop for more than a second. The two most expensive operations are font
matching (fontconfig) and harfbuzz. This bug is about exploring the fontconfig
madness..

Currently we ask fontconfig to find us a font called "-webkit-sans-serif",
"-webkit-serif". This is a default in the CSS and then gets replaced by the
WebCore::Setting. The current FontCacheQt is ignoring the family string
argument. Tor Arne had a patch to fix this (mostly to fix things on windows).
We should urgently start querying for the proper family name.

The second part is that changing the default font names in QWebSettings from
Arial, Times New Roman, to sans-serif, serif... seems to improve page loading
speed. We will have to look more carefully.


I have enabled font match debugging in QFontDatabase and also dump the pattern
from inside the WebKit/GTK+... the Qt pattern/match contains so much more
"elts" that I wonder what we are doing wrong?

-- 
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