qt: Add QFont::Normal as a supported font weight when no other font weights were found (#4175)

This commit is contained in:
UdjinM6 2021-05-24 19:15:20 +03:00
parent ce4a73b790
commit 575e0a3070
No known key found for this signature in database
GPG Key ID: 83592BD1400D58D9

View File

@ -1383,6 +1383,9 @@ bool loadFonts()
}
prevWeight = *weight;
}
if (vecSupported.empty()) {
vecSupported.push_back(QFont::Normal);
}
return vecSupported;
};