mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-04 23:40:58 +00:00
Use DemiBold fallback for Open Sans Semibold.
This commit is contained in:
parent
dc8abc74ed
commit
089c4ceb30
@ -57,7 +57,11 @@ FontData::FontData(int size, uint32 flags, int family, Font *other)
|
|||||||
modified[_flags] = Font(this);
|
modified[_flags] = Font(this);
|
||||||
|
|
||||||
f.setPixelSize(size);
|
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.setItalic(_flags & FontItalic);
|
||||||
f.setUnderline(_flags & FontUnderline);
|
f.setUnderline(_flags & FontUnderline);
|
||||||
f.setStyleStrategy(QFont::PreferQuality);
|
f.setStyleStrategy(QFont::PreferQuality);
|
||||||
|
Loading…
Reference in New Issue
Block a user