Use DemiBold when using packaged fonts
This commit is contained in:
parent
ea176df168
commit
f87b96e5b7
1 changed files with 4 additions and 2 deletions
|
|
@ -234,8 +234,10 @@ FontData::FontData(int size, uint32 flags, int family, Font *other)
|
|||
f.setPixelSize(size);
|
||||
if (_flags & FontBold) {
|
||||
f.setBold(true);
|
||||
//} else if (fontFamilies[family] == "Open Sans Semibold") {
|
||||
// f.setWeight(QFont::DemiBold);
|
||||
#ifdef DESKTOP_APP_USE_PACKAGED_FONTS
|
||||
} else if (fontFamilies[family] == "Open Sans Semibold") {
|
||||
f.setWeight(QFont::DemiBold);
|
||||
#endif
|
||||
}
|
||||
f.setItalic(_flags & FontItalic);
|
||||
f.setUnderline(_flags & FontUnderline);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue