How to get good quality of text in Core Animation


#1

Dear Master,

I have a question about Core Animation.

I just put an NSTextField on content view of Window.

if contentView setWantsLayer:YES the NSTextField got low quality of text.
if contextView setWantsLayer:NO the NSTextField’s quality is back to normal.

Thanks for help.

https://picasaweb.google.com/114755931805273493604/201233?authkey=Gv1sRgCOqQzbPQoqzuKg#5715585754937523314
https://picasaweb.google.com/114755931805273493604/201233?authkey=Gv1sRgCOqQzbPQoqzuKg#5715585755720533058

The code please refer to following

  • (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    // Insert code here to initialize your application

     [color=#FF0000][[[self window] contentView] setWantsLayer:YES];[/color]
    

}