forked from qt-creator/qt-creator
Help: Fix fallback font family on UNIX
Use "Sans Serif" as it is done inside Qt sources as well. Otherwise we run into the soft assert when retrieving the default fallback font style name on Linux systems. (Tested with Ubuntu, OpenSuSE, Arch Linux, Gentoo) Change-Id: Icf04a8ec4ace5014c5526a5a5e5ef45c48660afd Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -81,7 +81,7 @@ static QString defaultFallbackFontFamily()
|
|||||||
if (Utils::HostOsInfo::isMacHost())
|
if (Utils::HostOsInfo::isMacHost())
|
||||||
return QString("Helvetica");
|
return QString("Helvetica");
|
||||||
if (Utils::HostOsInfo::isAnyUnixHost())
|
if (Utils::HostOsInfo::isAnyUnixHost())
|
||||||
return QString("sans-serif");
|
return QString("Sans Serif");
|
||||||
return QString("Arial");
|
return QString("Arial");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user