Jump to content

1px anti-aliased line with dashes is near-solid

Recommended Posts

All line sizes except 1px have clear gaps for an anti-aliased line, but at the 1px size, the anti-aliased line isn't very helpful:


In some cases like with the pure dotted line, it actually eliminates dotting entirely. I'd consider this surprising behavior:
The problem is, it wouldn't be great to stop respecting anti-aliasing since the lines can be curving and you would have no replacement for 1px dashed AA lines to anyone who wants it. So I'm not actually sure what the solution is, except specially handling single-pixel lines to be drawn without anti-aliasing only if straight. But that still feels hacky. Just giving this feedback in case it's useful

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...