Fallback to custom main font if custom semibold font is not specified
This commit is contained in:
parent
b9dab597d8
commit
da2d14bd99
1 changed files with 3 additions and 0 deletions
|
|
@ -256,6 +256,9 @@ void StartFonts() {
|
||||||
if (!CustomSemiboldFont.isEmpty() && ValidateFont(CustomSemiboldFont)) {
|
if (!CustomSemiboldFont.isEmpty() && ValidateFont(CustomSemiboldFont)) {
|
||||||
Overrides[FontTypeSemibold] = CustomSemiboldFont;
|
Overrides[FontTypeSemibold] = CustomSemiboldFont;
|
||||||
Overrides[FontTypeSemiboldItalic] = CustomSemiboldFont;
|
Overrides[FontTypeSemiboldItalic] = CustomSemiboldFont;
|
||||||
|
} else if (!CustomMainFont.isEmpty() && ValidateFont(CustomMainFont)) {
|
||||||
|
Overrides[FontTypeSemibold] = CustomMainFont;
|
||||||
|
Overrides[FontTypeSemiboldItalic] = CustomMainFont;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto appFont = QApplication::font();
|
auto appFont = QApplication::font();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue