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() );
334 bool installFontsFromData( const QByteArray &data, QString &errorMessage
SIP_OUT, QStringList &families
SIP_OUT, QString &licenseDetails
SIP_OUT, const QString &filename = QString() );
345 void addUserFontDirectory( const QString &directory );
352 QMap< QString, QStringList > userFontToFamilyMap() const;
357 bool removeUserFont( const QString &path );
371 void fontDownloaded( const QStringList &families, const QString &licenseDetails );
379 void fontDownloadErrorOccurred( const QUrl &url, const QString &identifier, const QString &error );
383 QMap< QString, QString > mFamilyReplacements;
384 QMap< QString, QString > mLowerCaseFamilyReplacements;
385 QMap< QString, QStringList > mUserFontToFamilyMap;
386 QMap< QString,
int > mUserFontToIdMap;
387 mutable QReadWriteLock mReplacementLock;
388 QStringList mUserFontDirectories;
390 bool mEnableFontDownloads = false;
391 QMap< QString, QString > mPendingFontDownloads;
394 void storeFamilyReplacements();
395 void installFontsFromDirectory( const QString &dir );
A boolean settings entry.
A string list settings entry.