OSDN Git Service

Version 0.5
[fontmanager/fontmanager.git] / fontconfigmanager.h
index 809f492..98a439e 100644 (file)
@@ -1,6 +1,6 @@
 /****************************************************************************
 **
-** Copyright (C) 2011 Takumi Asaki
+** Copyright (C) 2012 Takumi Asaki
 ** All rights reserved.
 ** Contact: Takumi Asaki (takumi.asaki@gmail.com)
 **
@@ -43,6 +43,7 @@
 #include <QList>
 #include <QStringList>
 #include <QMap>
+#include <QFont>
 
 #include "fontsconfigproperties.h"
 
@@ -120,6 +121,7 @@ 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();
@@ -140,7 +142,7 @@ public slots:
     void readFontsConf();
     void saveFontsConf();
     void backupFontsConf(const QString &filepath);
-    void restoreFontsConf(const QUrl &fileUrl);
+    void restoreFontsConf(const QString &filepath);
 
     void resetFontsConf();