Treat Semibold as Regular.

This commit is contained in:
John Preston 2020-05-08 12:11:16 +04:00
parent 555a9d203c
commit 0ef9558269
3 changed files with 2 additions and 4 deletions

Binary file not shown.

Binary file not shown.

View file

@ -300,13 +300,11 @@ FontData::FontData(int size, uint32 flags, int family, Font *other)
f.setUnderline(_flags & FontUnderline);
f.setStrikeOut(_flags & FontStrikeOut);
if (_flags & FontSemibold) {
#ifdef DESKTOP_APP_USE_PACKAGED_FONTS
if (_flags & FontSemibold) {
f.setWeight(QFont::DemiBold);
#else // DESKTOP_APP_USE_PACKAGED_FONTS
f.setBold(true);
#endif // !DESKTOP_APP_USE_PACKAGED_FONTS
}
#endif // DESKTOP_APP_USE_PACKAGED_FONTS
m = QFontMetrics(f);
height = m.height();