gpt4 book ai didi

ios - 使用 CGContextSelectFont 的系统字体

转载 作者:搜寻专家 更新时间:2023-10-30 20:18:53 38 4
gpt4 key购买 nike

如何在 iOS 上找出要与 CGContextSelectFont 一起使用的系统字体名称?

最佳答案

这应该可以解决问题:

[UIFont systemFontOfSize:12].fontName

但是,我不建议使用 CGContextSelectFont() 方法,因为它将于 9 月 18 日在 iOS 7 中弃用。文档是这样说的:

(Deprecated in iOS 7.0. Use Core Text instead.)

关于ios - 使用 CGContextSelectFont 的系统字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18730544/

38 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com