Class: QgsFontDownloadDetails

Encapsulates details required for downloading a font.

Added in version 3.38.

Methods

family

Returns the font family.

fontUrls

Returns a list of download URLs for all files associated with the font family.

isValid

Returns True if the details represent a valid downloadable font.

licenseUrl

Returns the optional URL for downloading the font license details.

standardizedFamily

Returns the cleaned, standardized font family name.

Static Methods

standardizeFamily

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:

a0 (QgsFontDownloadDetails)

family(self) str[source]

Returns the font family.

Return type:

str

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

static standardizeFamily(family: str | None) str[source]

Returns a cleaned, standardized version of a font family name.

Parameters:

family (Optional[str])

Return type:

str

standardizedFamily(self) str[source]

Returns the cleaned, standardized font family name.

Return type:

str