From 575e0a3070674bc3fa7d7c9d9699505a0f2f3ac2 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 24 May 2021 19:15:20 +0300 Subject: [PATCH] qt: Add `QFont::Normal` as a supported font weight when no other font weights were found (#4175) --- src/qt/guiutil.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 40c0110091..93cc353b8d 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -1383,6 +1383,9 @@ bool loadFonts() } prevWeight = *weight; } + if (vecSupported.empty()) { + vecSupported.push_back(QFont::Normal); + } return vecSupported; };