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