Re: Text rendered in NSImage is fuzzy
Re: Text rendered in NSImage is fuzzy
- Subject: Re: Text rendered in NSImage is fuzzy
- From: Kyle Sluder <email@hidden>
- Date: Sun, 27 Jun 2010 14:18:42 -0700
On Jun 27, 2010, at 1:47 PM, Ken Ferry <email@hidden> wrote:
> I would guess (1) is more likely. Dave, if you were to read that wikipedia
> article and think about it carefully, you would realize that doing full
> featured transparency with font smoothing would require six channels (red,
> red alpha, green, green alpha, blue, blue alpha) instead of the usual ARGB
> backing stores bitmaps use. The easiest fix when applicable is to make sure
> the image isn't transparent. Fill the NSImage with an opaque color before
> doing the text drawing.
Be aware that this means CATextLayer will suffer the same problem. It even does if you specify a background color for the layer. If you're using Core Animation and want subpixel antialiasing, you have to do it yourself.
> Uli, whenever you do "+ 0.5" or something like that, you're very likely
> making an assumption that one unit the local coordinate system is one pixel,
> and that the current coordinate system is aligned to pixels. I.e., latent
> bug. :-)
It's only a latent bug if Apple ever gets serious about resolution independence on the Mac. And Apple has shown no interest in ultra-high DPI at all. They certainly didn't make it a tentpole feature of a new product or anything like that. ;-)
--Kyle Sluder
(Sent from an awesome new gelato place; blame euphoria for any typos)_______________________________________________
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