macteo / Marklight

Markdown syntax highlighter for iOS
Other
638 stars 44 forks source link

Change default text size/font #29

Open ivancantarino opened 5 years ago

ivancantarino commented 5 years ago

Hi. I was wondering if there is a way to change the body text and/or font ? Looking forward for any hint.

Keep up the good work.

ivancantarino commented 5 years ago

So, I have found out that I can change the size of the font with the following

let textStorage = MarklightTextStorage() textStorage.marklightTextProcessor.fontTextStyle = UIFont.TextStyle.title1.rawValue

but I haven't find a way to apply this to a custom font.