Fix applying bold style with system font

This commit is contained in:
Ilya Fedin 2020-12-26 03:25:28 +04:00
parent 5bb0b6a6e5
commit fc694055ac

View file

@ -46,8 +46,10 @@ QFont ResolveFont(uint32 flags, int size) {
: sizes;
const auto point = good.isEmpty() ? size : good.front();
result = Database.font(custom.family, custom.style, point);
} else if (!UseSystemFont || !overrideIsEmpty) {
result.setFamily(fontOverride);
} else {
if (!UseSystemFont || !overrideIsEmpty) {
result.setFamily(fontOverride);
}
if (bold) {
if (CustomSemiboldIsBold) {
result.setBold(true);