Merge pull request #7 from ilya-fedin/fallback-to-custom-main-font
Fallback to custom main font if custom semibold font is not specified
This commit is contained in:
commit
eb19141480
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