Bug 23803

Summary: fix 'off-by-1' error in Chromium font fallback
Product: WebKit Reporter: Jungshik Shin <jshin>
Component: Layout and RenderingAssignee: Jungshik Shin <jshin>
Status: RESOLVED FIXED    
Severity: Minor CC: dglazkov, eric
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
Attachments:
Description Flags
a test case
none
1-liner patch (with a comment) eric: review+

Jungshik Shin
Reported 2009-02-06 15:38:58 PST
There's an 'off-by-1' error in platform/graphics/chromium/FontCacheChromium.cpp. As a result, when only the last font in the list of fallback fonts covers a character, the character is regarded as not covered by any font and is rendered as an empty box.
Attachments
a test case (271 bytes, text/html)
2009-02-06 15:39 PST, Jungshik Shin
no flags
1-liner patch (with a comment) (1.56 KB, patch)
2009-02-06 15:56 PST, Jungshik Shin
eric: review+
Jungshik Shin
Comment 1 2009-02-06 15:39:49 PST
Created attachment 27426 [details] a test case With code2000 font installed, all 3 lines should be rendered identically.
Jungshik Shin
Comment 2 2009-02-06 15:56:06 PST
Created attachment 27429 [details] 1-liner patch (with a comment)
Eric Seidel (no email)
Comment 3 2009-02-24 16:05:27 PST
Comment on attachment 27429 [details] 1-liner patch (with a comment) OK. In the future, you don't need to make me the requestee. WebKit doesn't tend to target reviews to specific people unless you know that they are the only person who could review your change. In this case, I'm not the only person who could review this change. Making me the requestee is likely to just slow down the process.
Dimitri Glazkov (Google)
Comment 4 2009-03-03 10:22:30 PST
Note You need to log in before you can comment on or make changes to this bug.