EotFont
EotFont
Panoramica
EotFont è una classe in Aspose.Font FOSS per Python. Eredita da: Font.
Wrapper OpenType (EOT) incorporato su un font interno TrueType/OpenType.
Questa classe fornisce 6 metodi per lavorare con oggetti EotFont nei programmi Python. I metodi disponibili includono: __init__, convert, get_kern_pairs, save, save_to_format, to_bytes. Tutti i membri pubblici sono accessibili a qualsiasi applicazione Python dopo aver installato il pacchetto Aspose.Font FOSS per Python. Proprietà: charset, encoding, eot_version, flags, font_family, font_name, e altre 9.
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|---|---|---|
font_type | FontType | Lettura | Ottiene il tipo di carattere. |
inner_font | TtfFont | Lettura | Ottiene il font interno. |
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 font. |
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. |
eot_version | int | Lettura | Ottiene la versione eot. |
flags | int | Lettura | Ottiene i flag. |
charset | int | Lettura | Ottiene il set di caratteri. |
italic | int | Lettura | Ottiene l’italico. |
weight | int | Lettura | Ottiene il peso. |
fs_type | int | Lettura | Ottiene il tipo fs. |
Metodi
| Firma | Descrizione |
|---|---|
__init__(inner: TtfFont, eot_version: int, flags: int, charset: int, italic: int, weight: int, fs_type: int) | Crea un wrapper EOT attorno a un font sfnt interno. |
get_kern_pairs() → list[KernPair] | Restituisce le coppie di kern. |
| `to_bytes(font_type: FontType | None)→bytes` |
save(path: str) | Scrive il font EOT nel file system al percorso specificato |
save_to_format(font_type: FontType, path: str) | Converte il font nel FontType dato e lo salva nel percorso |
convert(target: FontType) → Font | Crea e restituisce un nuovo oggetto Font del target specificato FontType |