mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 10:11:41 -05:00
Disable DemiBold fallback for Semibold.
This reverts changes from commit 089c4ceb30
.
There were complaints that Persian font becomes unreadable :(
This commit is contained in:
parent
2d1971123a
commit
310c68a744
1 changed files with 3 additions and 3 deletions
|
@ -58,9 +58,9 @@ FontData::FontData(int size, uint32 flags, int family, Font *other)
|
||||||
|
|
||||||
f.setPixelSize(size);
|
f.setPixelSize(size);
|
||||||
if (_flags & FontBold) {
|
if (_flags & FontBold) {
|
||||||
f.setBold(_flags & FontBold);
|
f.setBold(true);
|
||||||
} else if (fontFamilies[family] == "Open Sans Semibold") {
|
//} else if (fontFamilies[family] == "Open Sans Semibold") {
|
||||||
f.setWeight(QFont::DemiBold);
|
// f.setWeight(QFont::DemiBold);
|
||||||
}
|
}
|
||||||
f.setItalic(_flags & FontItalic);
|
f.setItalic(_flags & FontItalic);
|
||||||
f.setUnderline(_flags & FontUnderline);
|
f.setUnderline(_flags & FontUnderline);
|
||||||
|
|
Loading…
Add table
Reference in a new issue