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;
|
: sizes;
|
||||||
const auto point = good.isEmpty() ? size : good.front();
|
const auto point = good.isEmpty() ? size : good.front();
|
||||||
result = Database.font(custom.family, custom.style, point);
|
result = Database.font(custom.family, custom.style, point);
|
||||||
} else if (!UseSystemFont || !overrideIsEmpty) {
|
} else {
|
||||||
|
if (!UseSystemFont || !overrideIsEmpty) {
|
||||||
result.setFamily(fontOverride);
|
result.setFamily(fontOverride);
|
||||||
|
}
|
||||||
if (bold) {
|
if (bold) {
|
||||||
if (CustomSemiboldIsBold) {
|
if (CustomSemiboldIsBold) {
|
||||||
result.setBold(true);
|
result.setBold(true);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue