From 686f9d27bbfc984c3c078485efaf3d2fce429c2b Mon Sep 17 00:00:00 2001 From: mjbudd77 Date: Sun, 9 Jan 2022 15:59:21 -0500 Subject: [PATCH] Ensure piano roll font is always forced to bold before calculating font pixel sizes. --- src/drivers/Qt/TasEditor/TasEditorWindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/drivers/Qt/TasEditor/TasEditorWindow.cpp b/src/drivers/Qt/TasEditor/TasEditorWindow.cpp index 50a0fa86..912824b0 100644 --- a/src/drivers/Qt/TasEditor/TasEditorWindow.cpp +++ b/src/drivers/Qt/TasEditor/TasEditorWindow.cpp @@ -4025,6 +4025,8 @@ QPianoRoll::QPianoRoll(QWidget *parent) font.setStyle( QFont::StyleNormal ); font.setStyleHint( QFont::Monospace ); } + font.setBold(true); + pal = this->palette(); windowColor = pal.color(QPalette::Window); @@ -4285,6 +4287,7 @@ void QPianoRoll::vbarChanged(int val) void QPianoRoll::setFont( QFont &newFont ) { font = newFont; + font.setBold(true); QWidget::setFont( newFont ); calcFontData(); }