[Webkit-unassigned] [Bug 123068] New: character width appears to be calculated before unicode-range is applied

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 19 14:22:09 PDT 2013


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

           Summary: character width appears to be calculated before
                    unicode-range is applied
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: http://codepen.io/patrickkettner/full/4eae4e3811c762f8
                    21259f55b2204e26
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Minor
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: patrickkettner at gmail.com


UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1674.0 Safari/537.36

I am loading a monospace font only for the period character (U+002E) using unicode-range. The second m's font-family is set to that font. The width of the character is what it should be if it was using the monospace font, even though the correct sans-serif font displays.
The width of the second m should be the width of the third m.


This bug does not exist in IE 9+. 

Steps to reproduce the problem:
1. go to http://codepen.io/patrickkettner/full/4eae4e3811c762f821259f55b2204e26
2. compare the widths of the 'm's

just in case the above test case doesn't work, you can view it with this dataurl

data:text/html, <html><style>@font-face{font-family:bug;src:local("Courier New");unicode-range:U+002E}div{font-size:125px;display:inline-block}.control{font-family:"Courier New";background:#00f}.mono{font-family:bug,sans-serif}.sans{font-family:sans-serif;background:red}</style><div class="control">m</div> <div class="mono">m</div> <div class="mono sans">m</div>

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