objective-c - 字体渲染不佳(Cocoa - Mac)

标签 objective-c macos cocoa

我注意到我的 xib 和最终程序中的字体渲染存在奇怪且非常明显的差异,我在下面附上了屏幕截图:

See here for zoomed out image

See here for zoomed in

这里发生了什么以及如何使我的应用程序字体看起来像 XCode 中的那样? (这和子像素渲染有关系吗???)。

最佳答案

I stole this answer from here :

If you have no background (including clear) and your text is a subview of any layer-backed superview (you've turned on "wants layer" in code or in IB to allow animations/transitions), you'll get blurry text. You have to choose either no layer backed view or a label with a solid background color.

关于objective-c - 字体渲染不佳(Cocoa - Mac),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11660419/

相关文章:

objective-c - 从 NSEvent block 调用 Cocoa ObjC 方法

macos - 颠覆: Working copy is old development version

python - 从 Mac 和 Linux 机器获取本地用户

objective-c - "Invalid Provisioning Profile... [Missing code-signing certificate.]"用于 OS X Mavericks 中全新的 Vanilla Mac App

objective-c - 在 cocoa 中创建无父模式对话框或消息框或警报表?

iphone - 为什么我在 Objective C 中进行深拷贝时遇到问题?

ios - Spritekit 碰撞检测无法正常运行

iPhone 应用程序 : not resuming audio session in AVAudio Player

ios - 我无法摆脱请求失败 : bad request (400)

macos - 如何在不关闭窗口的情况下关闭文档?