QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
Encapsulates details required for downloading a font. More...
#include <qgsfontmanager.h>
Public Member Functions | |
QgsFontDownloadDetails () | |
Constructor for an invalid QgsFontDownloadDetails. | |
QgsFontDownloadDetails (const QString &family, const QStringList &fontUrls, const QString &licenseUrl=QString()) | |
Constructor for QgsFontDownloadDetails. | |
QString | family () const |
Returns the font family. | |
QStringList | fontUrls () const |
Returns a list of download URLs for all files associated with the font family. | |
bool | isValid () const |
Returns true if the details represent a valid downloadable font. | |
QString | licenseUrl () const |
Returns the optional URL for downloading the font license details. | |
QString | standardizedFamily () const |
Returns the cleaned, standardized font family name. | |
Static Public Member Functions | |
static QString | standardizeFamily (const QString &family) |
Returns a cleaned, standardized version of a font family name. | |
Encapsulates details required for downloading a font.
Definition at line 36 of file qgsfontmanager.h.
|
default |
Constructor for an invalid QgsFontDownloadDetails.
QgsFontDownloadDetails::QgsFontDownloadDetails | ( | const QString & | family, |
const QStringList & | fontUrls, | ||
const QString & | licenseUrl = QString() |
||
) |
Constructor for QgsFontDownloadDetails.
family | Font family name |
fontUrls | List of URLS to download for complete set of the font family resources |
licenseUrl | optional URL to download the font license |
Definition at line 43 of file qgsfontmanager.cpp.
|
inline |
Returns the font family.
Definition at line 69 of file qgsfontmanager.h.
|
inline |
Returns a list of download URLs for all files associated with the font family.
Definition at line 79 of file qgsfontmanager.h.
|
inline |
Returns true
if the details represent a valid downloadable font.
Definition at line 62 of file qgsfontmanager.h.
|
inline |
Returns the optional URL for downloading the font license details.
Definition at line 84 of file qgsfontmanager.h.
|
inline |
Returns the cleaned, standardized font family name.
Definition at line 74 of file qgsfontmanager.h.
|
static |
Returns a cleaned, standardized version of a font family name.
Definition at line 51 of file qgsfontmanager.cpp.