On Jun 27, 2010, at 1:47 PM, Ken Ferry <kenfe...@gmail.com> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to