Skip to content
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

大佬,如何给文字设置粗体?不用系统的boldSystemFontOfSize方法之外还有别的方法吗? #8

Open
Jdb156158 opened this issue Dec 16, 2021 · 1 comment

Comments

@Jdb156158
Copy link

因为我设置font属性的时候用了fontWithName,所以不能用boldSystemFontOfSize来加粗了,还有别的方法可以加粗吗?不用描边方法来加粗。是加文字的粗细,不是描边的粗细

@rztime
Copy link
Owner

rztime commented Sep 30, 2022

暂时没有其他方法。
如果是用fontWithName,也就是你自己提供的三方字体库,那你可以多加几种字体(常规,粗体,斜体,粗斜体),对应不同字体粗细的需求用不同的字体库

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants