How to fix blurred text on an iPhone 6 (+)

对着背影说爱祢 提交于 2019-12-04 01:44:35

问题


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?


回答1:


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().



来源:https://stackoverflow.com/questions/26288350/how-to-fix-blurred-text-on-an-iphone-6

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