Bug 6139

Summary: ATSUI code path should implement small caps, synthetic bold and oblique and correct metrics for fallback fonts
Product: WebKit Reporter: mitz
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: VERIFIED FIXED    
Severity: Normal    
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Bug Depends on:    
Bug Blocks: 5166    
Attachments:
Description Flags
Patch (incl. layout test) darin: review+

Description mitz 2005-12-18 12:34:23 PST
[Split off from bug 5166]
Add the following missing features to the ATSUI code path in WebTextRenderer:
* small caps
* synthetic bold
* synthetic oblique
When a fallback font is used, compute metrics according to the fallback's rendering mode, to be 
consistent with the CG code path.
Comment 1 mitz 2005-12-18 14:08:08 PST
Created attachment 5140 [details]
Patch (incl. layout test)
Comment 2 mitz 2005-12-18 14:18:30 PST
Comment on attachment 5140 [details]
Patch (incl. layout test)

The code changes in this patch combine attachment 4966 [details] and attachment 4968 [details],
changing several YES/NO to true/false and adding

+		 if (!u_isbase(c))
+		     renderers[i] = isSmallCap ? getSmallCapsRenderer(r) : r;

to make sure that combining marks stay in the same renderer as the base
character preceding them.
Comment 3 Darin Adler 2005-12-18 14:33:07 PST
Comment on attachment 5140 [details]
Patch (incl. layout test)

r=me