blob: 95015dfcdbb83d18db7b20676c0c8b2bb6963efb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef QBASICUNIXFONTDATABASE_H
#define QBASICUNIXFONTDATABASE_H
#include <QPlatformFontDatabase>
#include <QtCore/QByteArray>
#include <QtCore/QString>
struct FontFile
{
QString fileName;
int indexValue;
};
class QBasicUnixFontDatabase : public QPlatformFontDatabase
{
public:
void populateFontDatabase();
QFontEngine *fontEngine(const QFontDef &fontDef, QUnicodeTables::Script script, void *handle);
QStringList fallbacksForFamily(const QString family, const QFont::Style &style, const QUnicodeTables::Script &script) const;
QStringList addApplicationFont(const QByteArray &fontData, const QString &fileName);
void releaseHandle(void *handle);
static QStringList addTTFile(const QByteArray &fontData, const QByteArray &file);
};
#endif // QBASICUNIXFONTDATABASE_H
|