macteo / Marklight

Markdown syntax highlighter for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change default text size/font

ivancantarino opened this issue · comments

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.

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.