FontConfig: Don't register hardcoded fonts as color fonts
This amends 16850709306589a2433c0038605d365a6b6bedad. The patch aimed to pass false for the color font parameter, but got it in the wrong position, so it passed false for the pixel size instead. The registerFont() function is a real mess, and it should be cleaned up, but this at least fixes the immediate bug. Task-number: QTBUG-132821 Change-Id: Id54989960aa5f86d3c79423d004530bb6a4fa475 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io> (cherry picked from commit 0107e05e50761dd29a3d968baa9f502ade41e064) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
5441057cc1
commit
41698bb5c1
@ -620,9 +620,9 @@ void QFontconfigDatabase::populateFontDatabase()
|
|||||||
|
|
||||||
while (f->qtname) {
|
while (f->qtname) {
|
||||||
QString familyQtName = QString::fromLatin1(f->qtname);
|
QString familyQtName = QString::fromLatin1(f->qtname);
|
||||||
registerFont(familyQtName,QString(),QString(),QFont::Normal,QFont::StyleNormal,QFont::Unstretched,true,true,false,0,f->fixed,ws,nullptr);
|
registerFont(familyQtName,QString(),QString(),QFont::Normal,QFont::StyleNormal,QFont::Unstretched,true,true,0,f->fixed,false,ws,nullptr);
|
||||||
registerFont(familyQtName,QString(),QString(),QFont::Normal,QFont::StyleItalic,QFont::Unstretched,true,true,false,0,f->fixed,ws,nullptr);
|
registerFont(familyQtName,QString(),QString(),QFont::Normal,QFont::StyleItalic,QFont::Unstretched,true,true,0,f->fixed,false,ws,nullptr);
|
||||||
registerFont(familyQtName,QString(),QString(),QFont::Normal,QFont::StyleOblique,QFont::Unstretched,true,true,false,0,f->fixed,ws,nullptr);
|
registerFont(familyQtName,QString(),QString(),QFont::Normal,QFont::StyleOblique,QFont::Unstretched,true,true,0,f->fixed,false,ws,nullptr);
|
||||||
++f;
|
++f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user