On Oct 11, 2012, at 1:25 PM, Matt Neuburg <m...@tidbits.com> wrote: > > On Oct 11, 2012, at 10:54 AM, David Duncan <david.dun...@apple.com> wrote: > >> On Oct 11, 2012, at 10:27 AM, Matt Neuburg <m...@tidbits.com> wrote: >> >>>> (1) CATextLayer in iOS 6 requires an opaque background in order to >>>> antialias text. CATextLayer in iOS 5 did not have this limitation; it >>>> could antialias its text perfectly well even if its background was >>>> transparent. Why the change? I'm guessing that it's an efficiency boost. >>> >>> I may be confused about this one. I was put off by the fact that my text >>> looks awful on the full-sized Retina simulator, but now it appears that it >>> *always* looked awful on the full-sized Retina simulator. It seems that >>> CATextLayer is **drawing** the text, not using the text system. So now I >>> have a different problem, namely that I don't understand the note at the >>> top of the CATextLayer class docs, since my text drawing in CATextLayer >>> looks the same with or without an opaque background. m. >> >> >> Did you set the contentsScale on your CATextLayer (or wrap it in a UIView)? >> By default CALayers never change their contentsScale, so if you are just >> using a plain CATextLayer without anything else to manage it, the >> contentsScale will be 1 regardless of the screen's density, making for >> fairly ugly text on Retina displays. > > Bingo and thank you, not necessarily in that order! > > Hmmm, now I need to figure out why this issue has not appeared on my other > layers. Maybe it did and I just didn't noticeā¦ m.
If you are using them as simple image views (you are assigning to the layer's contents property) and you are using the resize contentsGravity, then the image's full size will be used to display to the screen. In most other cases (at least with simple CALayers) you would be rendering at the wrong resolution. Of note CATiledLayers will simply try to use another LoD if available, and many other layer types are special in one way or another. -- David Duncan _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com