Make "bold for semibold" option force bold
This commit is contained in:
parent
1da7b32a3f
commit
6a0c87e064
1 changed files with 8 additions and 2 deletions
|
|
@ -400,10 +400,16 @@ FontData::FontData(int size, uint32 flags, int family, Font *other)
|
|||
|
||||
if ((_flags & FontBold) || (_flags & FontSemibold)) {
|
||||
#ifdef DESKTOP_APP_USE_PACKAGED_FONTS
|
||||
if (CustomSemiboldIsBold) {
|
||||
f.setBold(true);
|
||||
} else {
|
||||
f.setWeight(QFont::DemiBold);
|
||||
}
|
||||
#else // DESKTOP_APP_USE_PACKAGED_FONTS
|
||||
f.setBold(true);
|
||||
if (!CustomSemiboldIsBold) {
|
||||
f.setStyleName("Semibold");
|
||||
}
|
||||
#endif // !DESKTOP_APP_USE_PACKAGED_FONTS
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue