Fix applying bold style with system font
This commit is contained in:
parent
5bb0b6a6e5
commit
fc694055ac
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue