Class: QgsFontDownloadDetails¶
Encapsulates details required for downloading a font.
Added in version 3.38.
Methods
Returns the font family. |
|
Returns a list of download URLs for all files associated with the font family. |
|
Returns |
|
Returns the optional URL for downloading the font license details. |
|
Returns the cleaned, standardized font family name. |
Static Methods
Returns a cleaned, standardized version of a font family name. |
- class qgis.core.QgsFontDownloadDetails[source]¶
Bases:
object
- __init__()
Constructor for an invalid QgsFontDownloadDetails.
- __init__(family: str | None, fontUrls: Iterable[str | None], licenseUrl: str | None = '')
Constructor for QgsFontDownloadDetails.
- Parameters:
family (Optional[str]) – Font family name
fontUrls (Iterable[Optional[str]]) – List of URLS to download for complete set of the font family resources
licenseUrl (Optional[str] = '') – optional URL to download the font license
- __init__(a0: QgsFontDownloadDetails)
- Parameters:
- fontUrls(self) List[str] [source]¶
Returns a list of download URLs for all files associated with the font family.
- Return type:
List[str]
- isValid(self) bool [source]¶
Returns
True
if the details represent a valid downloadable font.- Return type:
bool
- licenseUrl(self) str [source]¶
Returns the optional URL for downloading the font license details.
- Return type:
str