What's the simplest way to change the font? #293
Unanswered
pedrommcarrasco
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hi @pedrommcarrasco, To configure the base font family and size on a Markdown {
"""
## Try MarkdownUI
**MarkdownUI** is a native Markdown renderer for SwiftUI
compatible with the
[GitHub Flavored Markdown Spec](https://github.github.com/gfm/).
"""
}
.markdownTextStyle(\.text) {
FontFamily(.custom("Avenir"))
FontSize(20)
} You can combine different text styles like You should always use an absolute size when overriding the default text style. Other text styles like headings or code blocks normally use relative sizes, based on the default text size. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey 👋,
I'm in search of the most straightforward method to modify the font and font size globally within the Markdown element. Despite reviewing documentation and conducting various experiments, I've hit a roadblock in identifying a simple solution for this adjustment.
Any guidance or suggestions would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions