W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2013

Re: [whatwg] Blurry lines in 2D Canvas (and SVG)

From: Rik Cabanier <cabanier@gmail.com>
Date: Tue, 23 Jul 2013 18:16:48 -0700
Message-ID: <CAGN7qDCTSsg-CNxofmnhVCKh7xRUBjemn1XvjwyyM8x7UGeNyg@mail.gmail.com>
To: Brian Birtles <bbirtles@mozilla.com>
Cc: whatwg@lists.whatwg.org
I guess there's too many "might"s in there :-)

I want to "adjust line positions and line widths to align edges with device
pixels" but not "the user agent might turn off anti-aliasing for all lines
and curves"

On Tue, Jul 23, 2013 at 6:11 PM, Brian Birtles <bbirtles@mozilla.com> wrote:

> (2013/07/24 10:07), Rik Cabanier wrote:
>
>> yeah, at first blush that seemed what was needed.
>> However, this simply turns off antialiasing completely so regular
>> artwork looks terrible.
>>
>
> That's a quality of implementation issue. The description of the property
> value says,
>
> "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."
>
> I'm not sure what use case you have in mind though. Perhaps it's something
> that doesn't fit that description?
>
>
Received on Wednesday, 24 July 2013 01:17:11 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:03 UTC