16 #include <QStringList>
18 #include "fonts/scface.h"
19 #include "fpointarray.h"
21 #include "scribusapi.h"
24 typedef struct FT_LibraryRec_ *FT_Library;
36 class SCRIBUS_API
SCFonts :
public QMap<QString,ScFace>
42 void GetFonts(QString pf,
bool showFontInfo=
false);
43 ScFace LoadScalableFont(
const QString &filename);
44 void AddScalableFonts(
const QString& path, QString DocName =
"");
48 QMap<QString,QString> getSubstitutions(
const QList<QString> skip = QList<QString>())
const;
50 void setSubstitutions(
const QMap<QString,QString>& substitutes,
ScribusDoc* doc = NULL);
51 void removeFont(QString name);
55 void ReadCacheList(QString pf);
56 void WriteCacheList(QString pf);
57 void AddPath(QString p);
58 bool AddScalableFont(QString filename, FT_Library &library, QString DocName);
59 void AddUserPath(QString pf);
60 #ifdef HAVE_FONTCONFIG
61 void AddFontconfigFonts();
64 void AddXFontServerPath();
76 QMap<QString, testCache> checkedFonts;
78 bool showFontInformation;
85 ScFace& current() {
return *it; }
86 QString currentKey()
const {
return it.key(); }
87 bool hasNext()
const {
return it != end_it; }
88 ScFace& next() { ++it;
return current(); }
91 QMap<QString,ScFace>::Iterator it, end_it;
the Document Class
Definition: scribusdoc.h:90
Base Class ScFace : This is a total rewrite of the old Foi class.
Definition: scface.h:73
QMap< QString, QStringList > fontMap
maps family name to face variants
Definition: scfonts.h:53
Main class SCFonts. Subclass of QDict. This class replaces the previous SCFonts typedef...
Definition: scfonts.h:36