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

iOS 13 issue and work around #7

Open
lewis-smith opened this issue Sep 10, 2019 · 1 comment
Open

iOS 13 issue and work around #7

lewis-smith opened this issue Sep 10, 2019 · 1 comment

Comments

@lewis-smith
Copy link

lewis-smith commented Sep 10, 2019

In iOS 13 I found that:

MGMushParser attributedStringFromMush:description font:font color:color];

would use a serif font for any bold text. I think this is down to changes in how to instantiate system fonts in iOS 13.

Of course it would be great if this was fixed, but in the mean time you can work around this by specifying bold fonts by hand:

[MGMushParser attributedStringFromMush:description font:font boldFont:boldFont italicFont:italicFont color:color paragraphStyle:paragraphStyle];

@saiday
Copy link

saiday commented Oct 21, 2019

Yep, other convenient constructors should provide system bold and italic font instead of nil font to parser.

I can submit a PR if the statement is doable.

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