mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 10:11:41 -05:00
Use DemiBold fallback for Open Sans Semibold.
This commit is contained in:
parent
dc8abc74ed
commit
089c4ceb30
1 changed files with 5 additions and 1 deletions
|
@ -57,7 +57,11 @@ FontData::FontData(int size, uint32 flags, int family, Font *other)
|
|||
modified[_flags] = Font(this);
|
||||
|
||||
f.setPixelSize(size);
|
||||
f.setBold(_flags & FontBold);
|
||||
if (_flags & FontBold) {
|
||||
f.setBold(_flags & FontBold);
|
||||
} else if (fontFamilies[family] == "Open Sans Semibold") {
|
||||
f.setWeight(QFont::DemiBold);
|
||||
}
|
||||
f.setItalic(_flags & FontItalic);
|
||||
f.setUnderline(_flags & FontUnderline);
|
||||
f.setStyleStrategy(QFont::PreferQuality);
|
||||
|
|
Loading…
Add table
Reference in a new issue