Re: NSBezierPath + thin lines + antialias = :(
Re: NSBezierPath + thin lines + antialias = :(
- Subject: Re: NSBezierPath + thin lines + antialias = :(
- From: Jerry Krinock <email@hidden>
- Date: Tue, 10 Feb 2015 11:23:50 -0800
> On 2015 Feb 10, at 05:36, Charles Jenkins <email@hidden> wrote:
>
> This may explain why my purchase of a program that outputs code for vector images resulted in disappointment.
Counterintuitive at first, but, yes :))
I’ve always wondered why, when you’re dragging a window around a non-Retina screen, the anti-aliasing doesn’t show a “comb filter” kind of effect, with different lines getting fuzzy and sharp as they are dragged on and off their pixels. Looking at this closely today, I think the explanation may be that
(1) Although you need to look carefully, Apple has constrained
dragging windows to “snap" to the grid of backing pixels.
You cannot move a window by one half pixel.
(2) A window’s intrinsic scrollers, title bars, etc. are also
on a 1-pixel grid.
(3) Any control or view that you place into Interface Builder
must be on a 1-pixel grid. I just tried entering a decimal
fraction, 139.5, and after I ended editing, it was rounded
down to 139.
So I think that’s why this has always been a mystery to me: Apple has layered on several contrivances to hide the ugly truth, and it works until you start adding your own views that have fractional pixel features.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden