WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
16182
SVG should disable antialiasing for shape-rendering="crispEdges"
https://bugs.webkit.org/show_bug.cgi?id=16182
Summary
SVG should disable antialiasing for shape-rendering="crispEdges"
Eric Seidel (no email)
Reported
2007-11-29 00:26:45 PST
SVG should disable antialiasing for shape-rendering="crispEdges" We don't support the shape-rendering property yet, but we really should. crispEdges is actually really useful for the implicit "align to device pixels" behavior.
Attachments
First attempt
(31.78 KB, patch)
2007-12-09 07:10 PST
,
Rob Buis
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Rob Buis
Comment 1
2007-12-09 07:10:06 PST
Created
attachment 17803
[details]
First attempt The patch should do it. Not sure whether we only need the pixel result though. I only implemented it for mac and qt and tried to add empty stubs for the others. Cheers, Rob.
Darin Adler
Comment 2
2007-12-10 02:13:12 PST
Comment on
attachment 17803
[details]
First attempt Looks fine, r=me
Eric Seidel (no email)
Comment 3
2007-12-10 11:31:24 PST
This looks great... my question to you though is how nice does the rendered result look? (I can check myself next time I build.) We might end up making a more sophisticated rule in the end: crispEdges Indicates that the user agent shall attempt to emphasize the contrast between clean edges of artwork over rendering speed and geometric precision. To achieve crisp edges, the user agent might turn off anti-aliasing for all lines and curves or possibly just for straight lines which are close to vertical or horizontal. Also, the user agent might adjust line positions and line widths to align edges with device pixels.
Rob Buis
Comment 4
2007-12-10 12:15:11 PST
Landed in
r28588
.
Simon Fraser (smfr)
Comment 5
2009-01-19 16:59:32 PST
Why did this patch add GraphicsContext::setUseAntialiasing() when it already has: void setShouldAntialias(bool); bool shouldAntialias() const; ? Filed
bug 23425
to clean this up.
Eric Seidel (no email)
Comment 6
2009-01-19 18:11:54 PST
(In reply to
comment #5
)
> Why did this patch add GraphicsContext::setUseAntialiasing() when it already > has: > > void setShouldAntialias(bool); > bool shouldAntialias() const; > ? > > Filed
bug 23425
to clean this up.
Wow, this is old. I think at the time those values only applied to text. But maybe I'm remembering wrong.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug