Class: QgsFontDownloadDetails¶
- class qgis.core.QgsFontDownloadDetails¶
Bases:
sip.wrapper
Encapsulates details required for downloading a font.
Added in version 3.38.
QgsFontDownloadDetails() Constructor for an invalid QgsFontDownloadDetails.
QgsFontDownloadDetails(family: str, fontUrls: Iterable[str], licenseUrl: str = ‘’) Constructor for QgsFontDownloadDetails.
- Parameters:
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
QgsFontDownloadDetails(
QgsFontDownloadDetails
)Methods
Returns the font family.
Returns a list of download URLs for all files associated with the font family.
Returns
True
if the details represent a valid downloadable font.Returns the optional URL for downloading the font license details.
Returns a cleaned, standardized version of a font
family
name.Returns the cleaned, standardized font family name.
- family(self) str ¶
Returns the font family.
See also
- Return type:
str
- fontUrls(self) List[str] ¶
Returns a list of download URLs for all files associated with the font family.
- Return type:
List[str]
- isValid(self) bool ¶
Returns
True
if the details represent a valid downloadable font.- Return type:
bool
- licenseUrl(self) str ¶
Returns the optional URL for downloading the font license details.
- Return type:
str
- standardizeFamily(family: str) str ¶
Returns a cleaned, standardized version of a font
family
name.- Parameters:
family (str)
- Return type:
str
- standardizedFamily(self) str ¶
Returns the cleaned, standardized font family name.
- Return type:
str