mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 10:22:55 +00:00
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:
parent
9b6710a4cd
commit
bc0aceca02
1 changed files with 0 additions and 19 deletions
|
@ -1058,25 +1058,6 @@ void QFontDatabasePrivate::parseFontName(const QString &name, QString &foundry,
|
|||
foundry.clear();
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Add table
Reference in a new issue