172 QMap< QString, QString > fontFamilyReplacements()
const;
191 void addFontFamilyReplacement(
const QString &original,
const QString &replacement );
210 void setFontFamilyReplacements(
const QMap< QString, QString> &replacements );
218 QString processFontFamilyName(
const QString &name )
const;
248 bool tryToDownloadFontFamily( const QString &family, QString &matchedFamily
SIP_OUT );
255 void enableFontDownloadsForSession();
269 Q_DECL_DEPRECATED QString urlForFontDownload( const QString &family, QString &matchedFamily
SIP_OUT ) const
SIP_DEPRECATED;
302 Q_DECL_DEPRECATED
void downloadAndInstallFont( const QUrl &url, const QString &identifier = QString() )
SIP_DEPRECATED;
318 void downloadAndInstallFont( const
QgsFontDownloadDetails &details, const QString &identifier = QString() );
335 bool installFontsFromData( const QByteArray &data, QString &errorMessage
SIP_OUT, QStringList &families
SIP_OUT, QString &licenseDetails
SIP_OUT, const QString &filename = QString(), const QString &extension = QString() );
346 void addUserFontDirectory( const QString &directory );
353 QMap< QString, QStringList > userFontToFamilyMap() const;
358 bool removeUserFont( const QString &path );
372 void fontDownloaded( const QStringList &families, const QString &licenseDetails );
380 void fontDownloadErrorOccurred( const QUrl &url, const QString &identifier, const QString &error );
384 QMap< QString, QString > mFamilyReplacements;
385 QMap< QString, QString > mLowerCaseFamilyReplacements;
386 QMap< QString, QStringList > mUserFontToFamilyMap;
387 QMap< QString,
int > mUserFontToIdMap;
388 mutable QReadWriteLock mReplacementLock;
389 QStringList mUserFontDirectories;
391 bool mEnableFontDownloads = false;
392 QMap< QString, QString > mPendingFontDownloads;
395 void storeFamilyReplacements();
396 void installFontsFromDirectory( const QString &dir );
A boolean settings entry.
A string list settings entry.