mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-01 00:29:13 +00:00
Add a little size to the monospace font.
This commit is contained in:
@@ -1015,6 +1015,7 @@ void ResponseText::handleCodeBlocks()
|
||||
|
||||
QTextCharFormat codeBlockCharFormat;
|
||||
QFont monospaceFont("Courier");
|
||||
monospaceFont.setPointSize(QGuiApplication::font().pointSize() + 2);
|
||||
if (monospaceFont.family() != "Courier") {
|
||||
monospaceFont.setFamily("Monospace"); // Fallback if Courier isn't available
|
||||
}
|
||||
|
Reference in New Issue
Block a user