You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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))
The text was updated successfully, but these errors were encountered:
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
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.
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)
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))
The text was updated successfully, but these errors were encountered: