Fix a typo in QFontconfigDatabase
Font family names for default families (Serif, Sans serif, Monospace) was only taken from the first family in the array (aka. always Serif). Change-Id: Ia326dc85e03819f1a72deda66aade348809d94da Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
This commit is contained in:
parent
5234e901be
commit
1d6e16a6ac
@ -453,9 +453,8 @@ void QFontconfigDatabase::populateFontDatabase()
|
||||
QSupportedWritingSystems ws;
|
||||
ws.setSupported(QFontDatabase::Latin);
|
||||
|
||||
|
||||
QString familyQtName = QString::fromLatin1(f->qtname);
|
||||
while (f->qtname) {
|
||||
QString familyQtName = QString::fromLatin1(f->qtname);
|
||||
registerFont(familyQtName,QString(),QFont::Normal,QFont::StyleNormal,QFont::Unstretched,true,true,0,f->fixed,ws,0);
|
||||
registerFont(familyQtName,QString(),QFont::Normal,QFont::StyleItalic,QFont::Unstretched,true,true,0,f->fixed,ws,0);
|
||||
registerFont(familyQtName,QString(),QFont::Normal,QFont::StyleOblique,QFont::Unstretched,true,true,0,f->fixed,ws,0);
|
||||
|
Loading…
Reference in New Issue
Block a user