How can i get all font names in the system
-
Hellow!
How i can get all font names in the system, i try:
@ QStringList fonts;
QStringList sub = QFont::substitutions();
for(int a=0;a<sub.count();++a)
{
fonts += QFont::substitutes(sub[a]);
qDebug() << sub[a];
}@
But it doesnt worke -
Try instead: "QFontDataBase::families()":http://doc.qt.nokia.com/4.8-snapshot/qfontdatabase.html#families