Summary: | Support stroking and filling of text in HTML using CSS | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dave Hyatt <hyatt> | ||||||
Component: | CSS | Assignee: | Dave Hyatt <hyatt> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | mrowe | ||||||
Priority: | P2 | ||||||||
Version: | 420+ | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.4 | ||||||||
Attachments: |
|
Description
Dave Hyatt
2006-12-20 01:55:25 PST
Created attachment 11928 [details]
Patch to implement this functionality
Here it is. Note that this is vaguely similar to a draft CSS3 property called text-outline, but I wanted to impelment a text-stroke property just for our engine that will match precisely the CG behavior for text stroking.
Created attachment 11929 [details]
Add a layout test and fix a couple of bugs mitz noticed
Added a layout test.
Comment on attachment 11929 [details]
Add a layout test and fix a couple of bugs mitz noticed
r=me
+ int strokeOverflow = rt->style()->textStrokeWidth() / 2 + 1;
Should be the other way around (add then divide).
Might be worth considering repurposing the SVG properties here, on the long term. |