Os2Table
Os2Table
Przegląd
Os2Table jest klasą w Aspose.Font FOSS dla Python.
Os2Table.from_reader(r, table_length) parsuje tabelę OS/2 z binary reader i zwraca instancję Os2Table.
Ta klasa udostępnia 2 metody do pracy z obiektami Os2Table w programach Python. Dostępne metody to: from_reader, to_bytes. Wszyscy public members są dostępni dla każdej aplikacji Python po zainstalowaniu pakietu Aspose.Font FOSS dla Python. Właściwości: ach_vend_id, fs_selection, fs_type, panose, s_typo_ascender, s_typo_descender, oraz 4 więcej.
Właściwości
| Nazwa | Typ | Dostęp | Opis |
|---|---|---|---|
version | int | Odczyt/zapis | Pobiera lub ustawia wersję. |
fs_type | int | Odczyt/zapis | Pobiera lub ustawia typ systemu plików. |
s_typo_ascender | int | Odczyt/zapis | Pobiera lub ustawia ascender litery s. |
s_typo_descender | int | Odczyt/zapis | Pobiera lub ustawia spadek litery s. |
s_typo_line_gap | int | Odczyt/zapis | Pobiera lub ustawia odstęp linii s typo. |
us_win_ascent | int | Odczyt/zapis | Uzyskuje lub ustawia us win ascent. |
us_win_descent | int | Odczyt/zapis | Pobiera lub ustawia us win descent. |
fs_selection | int | Odczyt/zapis | Pobiera lub ustawia wybór fs. |
panose | bytes | Odczyt/zapis | Pobiera lub ustawia panose. |
ach_vend_id | str | Odczyt/zapis | Pobiera lub ustawia ach vend id. |
Metody
| Sygnatura | Opis |
|---|---|
from_reader(r: BinaryReader, table_length: int) → "Os2Table" | Analizuje tabelę OS/2 z czytnika binarnego i zwraca instancję Os2Table |
to_bytes() → bytes | Serializuje pola tabeli OS/2 do obiektu bytes |