[Webkit-unassigned] [Bug 36351] @font-face installs the font not properly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 19 05:57:37 PDT 2010


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


Simon Hausmann <hausmann at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
           Priority|P2                          |P3
         AssignedTo|webkit-unassigned at lists.web |webkit-qt-unassigned at trollt
                   |kit.org                     |ech.com
                 CC|                            |zecke at selfish.org
     Ever Confirmed|0                           |1




--- Comment #1 from Simon Hausmann <hausmann at webkit.org>  2010-03-19 05:57:37 PST ---
Ok, I can confirm that this bug exists. It is caused by the use of local() in
the css:

@font-face {font-family: AgentOrange ; src: local(AgentOrange),
url(AgentOrange.ttf);}


The choice of local() as a resource for the font results in WebKit trying to
use a locally installed font first, and only then fall back to the remote url
to download the font.

The way the font system works for the Qt port in WebKit is that we satisfy all
requests for fonts, because it's Qt that tries to determine if a font exists or
not. We do not verify the existance of a font in the QFontDatabase, in
FontCache::createFontPlatformData.

If you remove the local() from the testcase, then the font is loaded.

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