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

Reply via email to