/****************************************************************************
**
-** Copyright (C) 2011 Takumi Asaki
+** Copyright (C) 2012 Takumi Asaki
** All rights reserved.
** Contact: Takumi Asaki (takumi.asaki@gmail.com)
**
#include <QList>
#include <QStringList>
#include <QMap>
+#include <QFont>
#include "fontsconfigproperties.h"
+class QUrl;
+
class InstalledFontInfo;
class FontsConf;
void addPrependFamily(const QString &family, const QString &value);
void addAppendFamily(const QString &family, const QString &value);
+ void insertPreferFamily(const QString &family, const QString &value, int index);
+ void insertAcceptFamily(const QString &family, const QString &value, int index);
+ void insertPrependFamily(const QString &family, const QString &value, int index);
+ void insertAppendFamily(const QString &family, const QString &value, int index);
+
void removePreferFamily(const QString &family, const QString &value);
void removeAcceptFamily(const QString &family, const QString &value);
void removePrependFamily(const QString &family, const QString &value);
QStringList installableFamily(const QString &family, bool localOnly = false);
+ QString localeFamily(const QString &family) const;
+
private:
bool maybeSansSerifFont(InstalledFontInfo *info) const;
bool maybeSerifFont(InstalledFontInfo *info) const;
bool maybeMonospaceFont(InstalledFontInfo *info) const;
+ QFont font4info(InstalledFontInfo *info, int pointSize) const;
signals:
void fcCacheFinished();
void readFcList();
void readFontsConf();
void saveFontsConf();
+ void backupFontsConf(const QString &filepath);
+ void restoreFontsConf(const QString &filepath);
void resetFontsConf();
QString mLocalFontPath;
QString mLocalFontsConfPath;
QList<InstalledFontInfo *> mFcListInfo;
+ QMap<QString, QString> mEnLocaleFontMap;
FontsConf *mLocalFontsConf;
FontsConf *mSystemLocalConf;