mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
Add a little size to the monospace font.
This commit is contained in:
parent
0e866a0e8f
commit
397f3ba2d7
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user