D27735: [KConfigGui] Clear styleName font property for Regular font sytles
Ahmad Samir
noreply at phabricator.kde.org
Sun Mar 1 09:04:24 GMT 2020
ahmadsamir added a comment.
To get those numbers I tested with this code:
QFontDatabase fdb;
const QStringList fontFamilies = fdb.families();
QStringList list;
int regularCnt = 0;
int normalCnt = 0;
int bookCnt = 0;
int romanCnt = 0;
for (const QString &family : fontFamilies) {
const QStringList styles = fdb.styles(family);
for (const QString &s : styles) {
if (s == QLatin1String("Regular")) {
++regularCnt;
} else if (s == QLatin1String("Normal")) {
++normalCnt;
} else if (s == QLatin1String("Book")) {
++bookCnt;
} else if (s == QLatin1String("Roman")) {
++romanCnt;
}
}
}
qDebug() << "Regular: " << regularCnt;
qDebug() << "Normal: " << normalCnt;
qDebug() << "Book: " << bookCnt;
qDebug() << "Roman: " << romanCnt;
REPOSITORY
R237 KConfig
BRANCH
l-font-sytleName (branched from master)
REVISION DETAIL
https://phabricator.kde.org/D27735
To: ahmadsamir, #frameworks, dfaure, davidedmundson, cfeck, ervin
Cc: kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200301/f4ec2309/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list