Use QFont::TypeWriter as font hint for monospace'd fonts
Windows may not have a Monospace font available but should
always have a TypeWriter font (ie. courier) available.
MODIFY
src/codeeditor.cpp
src/codeeditor.cpp
@@ -27,8 +27,8 @@ CodeEditor::CodeEditor(QWidget* parent) : QPlainTextEdit(parent) {
// Set font for the entire widget. calls to fontMetrics() will get the
// dimensions of the currently set font
- m_font = QFont("Monospace"); // set default font to Monospace on unix systems
- m_font.setStyleHint(QFont::Monospace);
+ m_font = QFont("Monospace");
+ m_font.setStyleHint(QFont::TypeWriter);
m_font.setPointSize(10);
setFont(m_font);
m_fontTimer.setSingleShot(true);

MODIFY
src/graphics/backgrounditems.cpp
src/graphics/backgrounditems.cpp
@@ -35,7 +35,7 @@ void DashLine::paint(QPainter* painter, const QStyleOptionGraphicsItem*, QWidget
Text::Text(QPointF pos) {
m_pos = pos;
m_font = QFont("Monospace");
- m_font.setStyleHint(QFont::Monospace);
+ m_font.setStyleHint(QFont::TypeWriter);
m_font.setPointSize(14);
}

Use QFont::TypeWriter as font hint for monospace'd fonts

Windows may not have a Monospace font available but should
always have a TypeWriter font (ie. courier) available.