Weird font anti-aliasing in view-based NSOutlineView

时光总嘲笑我的痴心妄想 提交于 2019-12-02 06:32:52

问题


I'm currently working on an app that uses Lion's new view-based NSOutlineView. The problem I've ran into, however, is that I don't get nice subpixel anti-aliasing. As a result, the text doesn't appear as smooth as one would expect on Mac OS X.

Here are two screenshots to illustrate the issue. Finder (proper text rendering) on the left, my app on the right.

Any idea what could cause that issue?


回答1:


Do you have your cell views, your outline view or its enclosing scroll view to be layer backed? The issue here is the text on the right is not sub pixel aliased, which happens when you set a view to be layer backed.



来源:https://stackoverflow.com/questions/6968312/weird-font-anti-aliasing-in-view-based-nsoutlineview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!