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

How to set the custom font for regular text in Swift 3.0 #16

Closed
tarzon opened this issue Dec 6, 2016 · 2 comments
Closed

How to set the custom font for regular text in Swift 3.0 #16

tarzon opened this issue Dec 6, 2016 · 2 comments

Comments

@tarzon
Copy link

tarzon commented Dec 6, 2016

I am unable to set the custom font for the regular text. My font file only contains a single font style, so it crashes at initialisation of MarkdownParser where it is unable to find its corresponding MarkdownBold font. Previously in Swift 2.3, it used to use the font set to UILable, but with the update to Swift 3.0, it no longer supports that. Any idea how to support that? Here is how I initialised MarkdownParser

let markdownParser = MarkdownParser(font: UIFont(name: "Some Custom Font Name", size: 16.0))

@tarzon tarzon changed the title How to set the custom font for regular text for Swift 3.0 How to set the custom font for regular text in Swift 3.0 Dec 6, 2016
@tarzon
Copy link
Author

tarzon commented Dec 12, 2016

Hi @ivanbruel, any update on this issue would be helpful.

@bmoliveira
Copy link
Owner

I've just added a font on the example project with only the regular definition and its working, if the problem still persists, please reopen the issue.

Thank you

bmoliveira added a commit that referenced this issue Jan 16, 2019
Changes:
 - Fixed most of the pending issues (#16 #18 #21 #29 #31 #33)
 - Merged all pending Pull Requests (Thank you so much for everyone that contributed, and sorry for the long time to answer)
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