WebFontFamilyPackage
WebFontFamilyPackage
Panoramica
WebFontFamilyPackage è una classe in Aspose.Font FOSS per Python.
WebFontFamilyPackage.write_to(directory) crea un pacchetto familiare completo contenente CSS, HTML, un manifesto e tutti gli asset di font inclusi per più varianti di stile.
Questa classe fornisce 1 metodo per lavorare con oggetti WebFontFamilyPackage nei programmi Python. I metodi disponibili includono: write_to. Tutti i membri pubblici sono accessibili a qualsiasi applicazione Python dopo l’installazione del pacchetto Aspose.Font FOSS per Python. Proprietà: assets, bundles, css, css_filename, family_name, html e 3 ulteriori.
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|---|---|---|
family_name | str | Lettura/Scrittura | Ottiene o imposta il nome della famiglia. |
bundles | list[WebFontBundle] | Lettura/Scrittura | Ottiene o imposta i bundles. |
css | str | Lettura/Scrittura | Ottiene o imposta il css. |
html | str | Lettura/Scrittura | Ottiene o imposta l’html. |
css_filename | str | Lettura/Scrittura | Ottiene o imposta il nome file css. |
html_filename | str | Lettura/Scrittura | Ottiene o imposta il nome file html. |
manifest_filename | str | Lettura/Scrittura | Ottiene o imposta il nome file del manifesto. |
manifest | dict[str, object] | Lettura/Scrittura | Ottiene o imposta il manifesto. |
assets | list[WebFontAsset] | Lettura/Scrittura | Ottiene o imposta le risorse. |
Metodi
| Firma | Descrizione |
|---|---|
| `write_to(directory: str | Path)→list[Path]` |