42 #include <QtGui/private/qapplication_p.h> 43 #include <QtGui/QPlatformFontDatabase> 49 QApplicationPrivate::platformIntegration()->fontDatabase()->populateFontDatabase();
95 familyName = list.
at(0);
107 qFatal(
"QFont::lastResortFont: Cannot find any reasonable font");
#define QT_END_NAMESPACE
This macro expands to.
QString lastResortFamily() const
Returns the "last resort" font family name.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
static void cleanup()
Internal function that cleans up the font system.
The QString class provides a Unicode character string.
HFONT handle() const
Returns the window system handle to the font, for low-level access.
QString rawName() const
Returns the name of the font within the underlying window system.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static void initialize()
Internal function that initializes the font system.
const T & at(int i) const
Returns the item at index position i in the list.
The QStringList class provides a list of strings.
QString lastResortFont() const
Returns a "last resort" font name for the font matching algorithm.
Q_CORE_EXPORT void qFatal(const char *,...)
StyleHint
Style hints are used by the font matching algorithm to find an appropriate default family if a select...
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
QExplicitlySharedDataPointer< QFontPrivate > d
int size() const
Returns the number of items in the list.
QString defaultFamily() const
Returns the family name that corresponds to the current style hint.
void setRawName(const QString &)
Sets a font by its system specific name.