From 77eec9cc845d7af939c3245b9d49614e8a1b597e Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Mon, 10 Nov 2025 10:00:02 +1100 Subject: [PATCH] Increase font size of normal text --- bouquin/markdown_editor.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bouquin/markdown_editor.py b/bouquin/markdown_editor.py index baea055..9421f23 100644 --- a/bouquin/markdown_editor.py +++ b/bouquin/markdown_editor.py @@ -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)