Post-merge fixes
This commit is contained in:
parent
85ffed7fcc
commit
29052af594
1 changed files with 7 additions and 7 deletions
|
|
@ -130,7 +130,7 @@ QString MonospaceFont() {
|
|||
const auto tryFont = [&](const QString &attempt) {
|
||||
const auto resolved = QFontInfo(QFont(attempt)).family();
|
||||
return !resolved.trimmed().compare(attempt, Qt::CaseInsensitive);
|
||||
}
|
||||
};
|
||||
|
||||
if (tryFont(CustomMonospaceFont)) {
|
||||
return CustomMonospaceFont;
|
||||
|
|
@ -371,6 +371,12 @@ FontData::FontData(int size, uint32 flags, int family, Font *other)
|
|||
f.setFamily(fontOverride);
|
||||
}
|
||||
|
||||
f.setPixelSize(size);
|
||||
f.setBold(_flags & FontBold);
|
||||
f.setItalic(_flags & FontItalic);
|
||||
f.setUnderline(_flags & FontUnderline);
|
||||
f.setStrikeOut(_flags & FontStrikeOut);
|
||||
|
||||
if (_flags & FontSemibold) {
|
||||
if (CustomSemiboldIsBold) {
|
||||
f.setBold(true);
|
||||
|
|
@ -383,12 +389,6 @@ FontData::FontData(int size, uint32 flags, int family, Font *other)
|
|||
}
|
||||
}
|
||||
|
||||
f.setPixelSize(size);
|
||||
f.setBold(_flags & FontBold);
|
||||
f.setItalic(_flags & FontItalic);
|
||||
f.setUnderline(_flags & FontUnderline);
|
||||
f.setStrikeOut(_flags & FontStrikeOut);
|
||||
|
||||
if (IsRealSemibold(fontOverride)) {
|
||||
f.setStyleName("Semibold");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue