Set style name always
For some reason with kde platformtheme plugin DemiBold doesn't work Also use italic version of semibold font when needed
This commit is contained in:
parent
db2a1279d6
commit
06d4cd2dab
1 changed files with 6 additions and 1 deletions
|
|
@ -322,8 +322,13 @@ FontData::FontData(int size, uint32 flags, int family, Font *other)
|
|||
f.setWeight(QFont::DemiBold);
|
||||
#else // DESKTOP_APP_USE_PACKAGED_FONTS
|
||||
f.setBold(true);
|
||||
f.setStyleName("Semibold");
|
||||
#endif // !DESKTOP_APP_USE_PACKAGED_FONTS
|
||||
|
||||
if (_flags & FontItalic) {
|
||||
f.setStyleName("Semibold Italic");
|
||||
} else {
|
||||
f.setStyleName("Semibold");
|
||||
}
|
||||
}
|
||||
|
||||
m = QFontMetrics(f);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue