• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Text rendered in NSImage is fuzzy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Text rendered in NSImage is fuzzy
      • From: David Duncan <email@hidden>
    • Re: Text rendered in NSImage is fuzzy
      • From: Kyle Sluder <email@hidden>
References: 
 >Text rendered in NSImage is fuzzy (From: Dave Fernandes <email@hidden>)
 >Re: Text rendered in NSImage is fuzzy (From: Uli Kusterer <email@hidden>)
 >Re: Text rendered in NSImage is fuzzy (From: Ken Ferry <email@hidden>)

  • Prev by Date: Re: Text rendered in NSImage is fuzzy
  • Next by Date: using UTF-32 in NSString.
  • Previous by thread: Re: Text rendered in NSImage is fuzzy
  • Next by thread: Re: Text rendered in NSImage is fuzzy
  • Index(es):
    • Date
    • Thread