[Webkit-unassigned] [Bug 63492] New: Incorrect weight and style matching for @font-face families

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 27 16:35:39 PDT 2011


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

           Summary: Incorrect weight and style matching for @font-face
                    families
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: http://seanmcb.com/typekit/webkit-font-matching-bug.ht
                    ml
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: sean at typekit.com


Created an attachment (id=98812)
 --> (https://bugs.webkit.org/attachment.cgi?id=98812&action=review)
Screenshots of the test page in various browsers

Webkit based browsers appear not to follow the font matching algorithm defined in the CSS3 Fonts Module working draft. All other browsers that I've tested (including IE 6-8) correctly follow this algorithm.

The problem occurs when you define a @font-face font family with fewer weights and styles than you use on the page. The spec says (and the behavior of all other browsers is) that when you have a @font-face family defined, font matching should match the nearest weight and style available in that family. If only one weight/style is available, then that weight/style should be used for all text set in that family on the page.

My test case page illustrates this problem and provides more detail: http://seanmcb.com/typekit/webkit-font-matching-bug.html

I've attached a screenshot of the rendering of this page in Chrome, Safari, Webkit nightly, IE6, and Firefox 5 so you can compare. Firefox 5 and IE6 show the expected behavior.

There are two aspects of this bug that make it a problem:
1. @font-face fonts display differently for certain weights/styles between Webkit browsers and other browsers. Fallbacks should not be used here.
2. When on Mac OSX and the font is installed locally, a local font is used for certain weights/styles even when no local() item is listed in the @font-face's src property. According to the spec, local fonts should never be used when a @font-face exists. Local fonts could have different metrics or otherwise inconsistent rendering with a web font version of the same font.

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