Os2Table
개요
Os2Table은 Aspose.Font FOSS에서 Python을 위한 클래스입니다.
Os2Table.from_reader(r, table_length)는 바이너리 리더에서 OS/2 테이블을 파싱하고 Os2Table 인스턴스를 반환합니다.
이 클래스는 Python 프로그램에서 Os2Table 객체를 다루기 위한 2개의 메서드를 제공합니다. 사용 가능한 메서드에는 from_reader, to_bytes이 포함됩니다. Aspose.Font FOSS for Python 패키지를 설치한 후 모든 Python 애플리케이션에서 모든 공개 멤버에 접근할 수 있습니다. 속성: ach_vend_id, fs_selection, fs_type, panose, s_typo_ascender, s_typo_descender, 및 4개 더.
속성
| 이름 | 유형 | 액세스 | 설명 |
|---|---|---|---|
version | int | 읽기/쓰기 | 버전을 가져오거나 설정합니다. |
fs_type | int | 읽기/쓰기 | fs 유형을 가져오거나 설정합니다. |
s_typo_ascender | int | 읽기/쓰기 | s typo ascender를 가져오거나 설정합니다. |
s_typo_descender | int | 읽기/쓰기 | s typo descender를 가져오거나 설정합니다. |
s_typo_line_gap | int | 읽기/쓰기 | s typo 줄 간격을 가져오거나 설정합니다. |
us_win_ascent | int | 읽기/쓰기 | us win ascent를 가져오거나 설정합니다. |
us_win_descent | int | 읽기/쓰기 | us win descent를 가져오거나 설정합니다. |
fs_selection | int | 읽기/쓰기 | fs 선택을 가져오거나 설정합니다. |
panose | bytes | 읽기/쓰기 | panose를 가져오거나 설정합니다. |
ach_vend_id | str | 읽기/쓰기 | ach vend id를 가져오거나 설정합니다. |
메서드
| 시그니처 | 설명 |
|---|---|
from_reader(r: BinaryReader, table_length: int) → "Os2Table" | 바이너리 리더에서 OS/2 테이블을 파싱하고 Os2Table 인스턴스를 반환합니다 |
to_bytes() → bytes | OS/2 테이블 필드를 bytes object 로 직렬화합니다 |