Bug 33400

Summary: Font fallback kills SVG kerning
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: TextAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ddkilzer, eric, mitz, zimmermann
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Macintosh Intel   
OS: OS X 10.6   
Bug Depends on:    
Bug Blocks: 33374    
Attachments:
Description Flags
test case
none
Cache font attributes seperately for different typesetting features zimmermann: review+

Description Alexey Proskuryakov 2010-01-08 14:07:25 PST
Created attachment 46159 [details]
test case

Steps to reproduce:
1. Unpack the attached archive into LayoutTests directory.
2. run-webkit-tests --pixel --tolerance 0 kerning/2.svg
3. run-webkit-tests --pixel --tolerance 0 kerning

Results: 2.svg fails, because kerning doesn't happen.
Comment 1 mitz 2010-01-09 00:48:31 PST
<rdar://problem/7525778>
Comment 2 mitz 2010-01-09 02:38:20 PST
Created attachment 46203 [details]
Cache font attributes seperately for different typesetting features
Comment 3 Nikolas Zimmermann 2010-01-09 06:27:47 PST
Comment on attachment 46203 [details]
Cache font attributes seperately for different typesetting features

Looks very nice! I assume you've tried a pixel test run in svg/ as well, without problems? If yes, r=me.
Comment 4 David Kilzer (:ddkilzer) 2010-01-09 08:42:21 PST
Comment on attachment 46203 [details]
Cache font attributes seperately for different typesetting features

> +        Cache font attributes seperately for different typesetting features.

Typo:  "separately"
Comment 5 David Kilzer (:ddkilzer) 2010-01-09 08:51:42 PST
Comment on attachment 46203 [details]
Cache font attributes seperately for different typesetting features

> +        (WebCore::SimpleFontData::getCFStringAttributes): Look up the attributes
> +        dictionary in the map and initialize in necessary.

Typo: "if necessary".
Comment 6 mitz 2010-01-09 10:47:35 PST
Fixed in <http://trac.webkit.org/projects/webkit/changeset/53039>.