mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-23 14:07:58 +00: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;
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user