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
Hello there,
First of all, thanks a lot for this library, soooo usefull :)
I'm using it in my iOS app and it works very well, even with custom fonts!
But I think I found a bug when using a monospaced system font, running on iOS 13:
in some cases, I need to use UIFont.monospacedDigitSystemFont(ofSize: 30, weight: .bold).
So, instead of using a custom font, I use a system one.
Oddly, this causes my label to be displayed with Times New Roman while I'm not using this font at all.
It works well for every texts in a custom font (I'm using Gilroy in my app) except for those with a system one.
It appears the font change occurs in the file SwiftyMarkdown+iOS.swift.
The text was updated successfully, but these errors were encountered:
jeffjfk
changed the title
Monospaced system font replaced by Times New Roman
Monospaced system font replaced by Times New Roman in iOS 13+
Aug 10, 2020
Hello there,
First of all, thanks a lot for this library, soooo usefull :)
I'm using it in my iOS app and it works very well, even with custom fonts!
But I think I found a bug when using a monospaced system font, running on iOS 13:
in some cases, I need to use
UIFont.monospacedDigitSystemFont(ofSize: 30, weight: .bold)
.So, instead of using a custom font, I use a system one.
Oddly, this causes my label to be displayed with Times New Roman while I'm not using this font at all.
I found this radar which could explain what's going on: https://openradar.appspot.com/6153065
Back in the code, looking for the what line is responsible of this change...
Here is my code to set each needed styles:
It works well for every texts in a custom font (I'm using Gilroy in my app) except for those with a system one.
It appears the font change occurs in the file
SwiftyMarkdown+iOS.swift
.Looking at this WWWDC2019 video, at 2'45 it is said we should no more try to get a UIFont by it's name : https://developer.apple.com/videos/play/wwdc2019/227/
Has anyone any idead how to solve that?
The text was updated successfully, but these errors were encountered: