WoffFont
WoffFont
Panoramica
WoffFont è una classe in Aspose.Font FOSS per Python. Eredita da: Font.
WoffFont.font_type restituisce il valore di enumerazione FontType di questo font WOFF.
Questa classe fornisce 14 metodi per lavorare con oggetti WoffFont nei programmi Python. I metodi disponibili includono: __init__, convert, encoding, font_family, font_name, font_style, font_type, get_kern_pairs, glyph_accessor, metrics, num_glyphs, save, e 2 metodi aggiuntivi. Tutti i membri pubblici sono accessibili a qualsiasi applicazione Python dopo l’installazione del pacchetto Aspose.Font FOSS per Python. Proprietà: encoding, font_family, font_name, font_style, font_type, glyph_accessor, e 4 in più.
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|---|---|---|
font_type | FontType | Lettura | Ottiene il tipo di carattere. |
font_name | str | Lettura | Ottiene il nome del carattere. |
font_family | str | Lettura | Ottiene la famiglia di caratteri. |
font_style | str | Lettura | Ottiene lo stile del carattere. |
num_glyphs | int | Lettura | Ottiene il numero di glifi. |
metrics | FontMetrics | Lettura | Ottiene le metriche. |
encoding | FontEncoding | Lettura | Ottiene la codifica. |
glyph_accessor | GlyphAccessor | Lettura | Ottiene l’accessore del glifo. |
metadata_xml | str | Lettura | Ottiene l’XML dei metadati. |
inner_font | TtfFont | Lettura | Ottiene il font interno. |
Metodi
| Firma | Descrizione |
|---|---|
__init__(inner: TtfFont, metadata_xml: str) | Calls init in questa istanza WoffFont. |
get_kern_pairs() → list[KernPair] | Restituisce le coppie di kern. |
| `to_bytes(font_type: FontType | None)→bytes` |
font_type() → FontType | Restituisce il valore di enumerazione FontType di questo font WOFF |
font_name() → str | Property restituisce la stringa del nome del font |
font_family() → str | Property restituisce la stringa del nome della famiglia del font |
font_style() → str | Chiama font_style su questa istanza di WoffFont. |
num_glyphs() → int | Property restituisce il conteggio dei glifi nel font |
metrics() → FontMetrics | La proprietà restituisce l’oggetto FontMetrics per il font |
encoding() → FontEncoding | Chiama l’encoding su questa istanza di WoffFont. |
glyph_accessor() → GlyphAccessor | Restituisce un GlyphAccessor per recuperare le informazioni sui glifi |
save(path: str) | Chiama save su questa istanza di WoffFont. |
save_to_format(font_type: FontType, path: str) | Chiama save_to_format su questa istanza di WoffFont. |
convert(target: FontType) → Font | Chiama convert su questa istanza di WoffFont. |