Increase font size of normal text

This commit is contained in:
Miguel Jacq 2025-11-10 10:00:02 +11:00
parent 4f4735cfb6
commit 77eec9cc84
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9

View file

@ -44,6 +44,7 @@ class MarkdownHighlighter(QSyntaxHighlighter):
def _setup_formats(self):
"""Setup text formats for different markdown elements."""
# Bold: **text** or __text__
self.bold_format = QTextCharFormat()
self.bold_format.setFontWeight(QFont.Weight.Bold)
@ -261,6 +262,11 @@ class MarkdownEditor(QTextEdit):
# We accept plain text, not rich text (markdown is plain text)
self.setAcceptRichText(False)
# Normal text
font = QFont()
font.setPointSize(11)
self.setFont(font)
# Install syntax highlighter
self.highlighter = MarkdownHighlighter(self.document(), theme_manager)