我注意到我的 xib 和最终程序中的字体渲染存在奇怪且非常明显的差异,我在下面附上了屏幕截图:
这里发生了什么以及如何使我的应用程序字体看起来像 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/