• 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
setWantsLayer: YES causing font render problem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setWantsLayer: YES causing font render problem?


  • Subject: setWantsLayer: YES causing font render problem?
  • From: Adhamh Findlay <email@hidden>
  • Date: Wed, 20 Feb 2008 09:00:08 -0600

Hello,

I've started to use Core Animation for window/sheet resizing. I noticed that when I enabled setWantsLayer: YES in my awakeFromNib method that the font in my labels become pixelated. If I don't call setWantsLayer: the animations appear to still work correctly and the font goes back to normal.

While investigating this I found that the BasicCocoaAnimations sample project has the same problem because it calls setWantsLayer: YES in the main window controller's awakeFromNib method. (Which leads me to believe that I should call this method too.)

http://developer.apple.com/samplecode/BasicCocoaAnimations/index.html

Screen shots from BasicCococaAnimations.app

Zoomed in

PNG image




Normal size

PNG image




I've found CAEdgeAntialiasingMask, but that doesn't seem seem to be related to font antialiasing.


Is this an antialiasing issue?  Is there a way to correct it?

I'm running 10.5.2.

Thanks,

Adhamh

_______________________________________________

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: setWantsLayer: YES causing font render problem?
      • From: Chris Ryland <email@hidden>
  • Prev by Date: Re: How to draw a CGImage object to a NSView?
  • Next by Date: Re: How to draw a CGImage object to a NSView?
  • Previous by thread: Re: How to draw a CGImage object to a NSView?
  • Next by thread: Re: setWantsLayer: YES causing font render problem?
  • Index(es):
    • Date
    • Thread