SimonFairbairn / SwiftyMarkdown

Converts Markdown files and strings into NSAttributedStrings with lots of customisation options.
MIT License
1.64k stars 275 forks source link

Fix an issue with system font names #100

Open xavierLowmiller opened 3 years ago

xavierLowmiller commented 3 years ago

(Solves #92)

Checks if the font name is the system font name, in which case we use the UIFont.systemFont(ofSize:) API to generate the font instance.

Using UIFont(name:size:) with .SFUI fonts currently uses Times New Roman as the default font.

Claes34 commented 2 years ago

Too bad this has never been merged :(