[Qt-interest] font family insertSubstitutions
Giacomo
giacomo.strangolino at elettra.trieste.it
Fri Nov 27 14:17:02 CET 2009
Hi to all.
Can anyone explain me how QFont::insertSubstitutions works?
I call
QFont f = font();
QFont::insertSubstitutions("Sans Serif", QStringList() << "Helvetica" <<
"Verdana" << "Monospace");
f->setFamily("Sans Serif");
/* this is not installed, actually is rendered very badly */
qDebug() << f->family(); /* says Sans Serif! */
although Monospace and verdana are installed...
Can someone help?
Thanks in advance
Giacomo
More information about the Qt-interest-old
mailing list