Better match thin font styles
A style name 'Extra Thin' or 'Thin Italic' should be parsed as Thin font weight. Change-Id: I8acebed7330c23231b3742d887081d8b3d0aeb19 Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
This commit is contained in:
parent
86601fc575
commit
e905526090
@ -121,6 +121,8 @@ static int getFontWeight(const QString &weightString)
|
||||
return QFont::DemiBold;
|
||||
return QFont::Bold;
|
||||
}
|
||||
if (s.contains(QLatin1String("thin")))
|
||||
return QFont::Thin;
|
||||
if (s.contains(QLatin1String("light")))
|
||||
return QFont::Light;
|
||||
if (s.contains(QLatin1String("black")))
|
||||
|
Loading…
Reference in New Issue
Block a user