-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
屏幕渲染机制 #44
Comments
Open
Proportional Fonts VS. Monospace Fonts问题在使用 UILabel 显示 “01:11:10” 这种数字时,数字 1 的宽度和数字 0 的宽度不同。 解决办法方法一iOS 9.0 以前,可以通过设置 font family 为某些特殊字体,来实现 monospace 的效果: UIFont(name:"Courier", size: 17) iOS 9.0 及以后,UIFont 新增了 monospace 的 API: +[UIFont monospacedDigitSystemFontOfSize: weight:] 方法二让设计师专门设计一套数字 iconfont 方法三单独为每个数字添加固定宽度的 label 参考 |
iconfont相关专题:NSString 和 Unicode 参考资料 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: