do not capitalize family and foundry from QFontDatabasePrivate::parseFontName()

undesired and uncontrollable altering of the font family can cause issues
here and there

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-04-01 09:19:04 +03:00
parent 9b6710a4cd
commit bc0aceca02

View file

@ -1058,25 +1058,6 @@ void QFontDatabasePrivate::parseFontName(const QString &name, QString &foundry,
foundry.clear(); foundry.clear();
family = name; family = name;
} }
// capitalize the family/foundry names
bool space = true;
QChar *s = family.data();
int len = family.length();
while(len--) {
if (space) *s = s->toUpper();
space = s->isSpace();
++s;
}
space = true;
s = foundry.data();
len = foundry.length();
while(len--) {
if (space) *s = s->toUpper();
space = s->isSpace();
++s;
}
} }
/*! /*!