nsattribatedstring更改字体大小
我有一个NSATTRIBDERSTRING,它可能具有多个具有不同字体样式和其他属性的子弹。如何修改整个属性字符串字体的大小?将字体尺寸设置为20,应将字符串中所有字体的所有字体设置为20。
I have an NSAttributedString which may have multiple subranges with different font styles and other attributes. How do I modify the size of font for the whole attributed string? Setting a font size of 20 should set pointSize of all fonts in the string to 20.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过这些扩展,您将能够轻松地更改所有子弹中
nsattributedString
的字体大小,而其他字体参数则相同。用法
扩展
With these extensions you will be able to easily change font size of the
NSAttributedString
in all of the subranges leaving other font parameters the same.Usage
Extensions