如何修复iPhone 6上的模糊文字(+) [英] How to fix blurred text on an iPhone 6 (+)

查看:275
本文介绍了如何修复iPhone 6上的模糊文字(+)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在应用程序中使用自定义字体和自定义字体大小。
当在iPhone 6上运行应用程序(还没有尝试过6+,但我认为它是相同的),所有的字体看起来模糊。我们也有一个使用系统字体的内部工具,它看起来也很模糊。



为什么会这样呢?他们在iPhone 5上做什么?也许你的标签或绘图点不是在一个确切的像素,而是在一个分数像素。为了防止这种情况下使用像ceilf(),floorf()和CGRectIntegral()的方法。


We use a custom font face and custom font sizes in our application. When running the application on an iPhone 6 (haven't tried 6+ yet but I assume it's the same) all fonts look blurry. We also have an internal tool that uses the system font and it looks blurry as well.

Why is that and what is the right approach to get them to render as crisp as they do on an iPhone 5?

解决方案

Perhaps your labels or drawing points aren't on an exact pixel, but instead on a fractional pixel. To prevent such situations use methods like ceilf(), floorf() and CGRectIntegral().

这篇关于如何修复iPhone 6上的模糊文字(+)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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