Add a little size to the monospace font.

This commit is contained in:
Adam Treat 2023-07-27 09:12:17 -04:00
parent 0e866a0e8f
commit 397f3ba2d7

View File

@ -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
}