QtGui/qfontdatabase.h Source File
Go to the documentation of this file.
42 #ifndef QFONTDATABASE_H
43 #define QFONTDATABASE_H
60 template <class T> class
QList;
64 class QFontDatabasePrivate;
123 QStringList families(WritingSystem writingSystem = Any)
const;
124 QStringList styles(
const QString &family)
const;
141 bool hasFamily(
const QString &family)
const;
143 static QString writingSystemName(WritingSystem writingSystem);
144 static QString writingSystemSample(WritingSystem writingSystem);
146 static int addApplicationFont(
const QString &fileName);
147 static int addApplicationFontFromData(
const QByteArray &fontData);
148 static QStringList applicationFontFamilies(
int id);
149 static bool removeApplicationFont(
int id);
150 static bool removeAllApplicationFonts();
152 static bool supportsThreadedFontRendering();
155 static void createDatabase();
158 #if defined(Q_WS_QWS) || defined(Q_WS_QPA) || defined(Q_OS_SYMBIAN)
159 static QFontEngine *findFont(
int script,
const QFontPrivate *fp,
const QFontDef &request);
161 static void load(
const QFontPrivate *d,
int script);
163 static QFontEngine *loadXlfd(
int screen,
int script,
const QFontDef &request,
int force_encoding_id = -1);
166 friend struct QFontDef;
167 friend class QFontPrivate;
169 friend class QFontDialogPrivate;
170 friend class QFontEngineMultiXLFD;
171 friend class QFontEngineMultiQWS;
172 friend class QFontEngineMultiS60;
173 friend class QFontEngineMultiQPA;
175 QFontDatabasePrivate *d;
182 #endif // QFONTDATABASE_H
#define QT_BEGIN_NAMESPACE
GLuint const GLchar * name