mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
correct override condition in patternForRequest() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
9cf24d312d
commit
94c4266569
1 changed files with 1 additions and 1 deletions
|
@ -404,7 +404,7 @@ static FcPattern* patternForRequest(const QFontDef &request)
|
||||||
{
|
{
|
||||||
QString requeststyle = request.styleName;
|
QString requeststyle = request.styleName;
|
||||||
if (request.weight != QFont::Normal || request.style != QFont::StyleNormal
|
if (request.weight != QFont::Normal || request.style != QFont::StyleNormal
|
||||||
|| request.stretch == QFont::Unstretched) {
|
|| request.stretch != QFont::Unstretched) {
|
||||||
// when weight, style or stretch has been specified override the style because it makes no
|
// when weight, style or stretch has been specified override the style because it makes no
|
||||||
// sense otherwise, e.g. there is "Book" style for which weight and slant may make sense
|
// sense otherwise, e.g. there is "Book" style for which weight and slant may make sense
|
||||||
// but not for "Bold Oblique". because weight can be any integer (which makes things even
|
// but not for "Bold Oblique". because weight can be any integer (which makes things even
|
||||||
|
|
Loading…
Add table
Reference in a new issue