基于视图的NSOutlineView中的怪异字体抗锯齿 [英] Weird font anti-aliasing in view-based NSOutlineView

查看:97
本文介绍了基于视图的NSOutlineView中的怪异字体抗锯齿的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发一个使用Lion基于视图的新NSOutlineView的应用程序.但是,我遇到的问题是我没有得到很好的亚像素抗锯齿.结果,文本的显示效果不如Mac OS X上的平滑.

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.

这里有两个截图说明了这个问题. Finder(正确的文本呈现)在左侧,我的应用程序在右侧.

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?

推荐答案

您是否要对单元格视图,大纲视图或其包含的滚动视图进行图层支持?这里的问题是,右侧的文本不是子像素别名,这是在将视图设置为支持图层的情况下发生的.

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.

这篇关于基于视图的NSOutlineView中的怪异字体抗锯齿的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆