EotFont

개요

EotFont은(는) Aspose.Font FOSS에서 Python을(를) 위해 제공되는 클래스입니다. 상속 대상: Font.

내부 TrueType/OpenType 글꼴 위에 임베드된 OpenType (EOT) 래퍼.

이 클래스는 Python 프로그램에서 EotFont 객체를 다루기 위한 6개의 메서드를 제공합니다. 사용 가능한 메서드: __init__, convert, get_kern_pairs, save, save_to_format, to_bytes. 모든 공개 멤버는 Aspose.Font FOSS for Python 패키지를 설치한 후 any Python 애플리케이션에서 접근할 수 있습니다. 속성: charset, encoding, eot_version, flags, font_family, font_name, 및 기타 9개.

속성

이름유형액세스설명
font_typeFontType읽기글꼴 유형을 가져옵니다.
inner_fontTtfFont읽기내부 폰트를 가져옵니다.
font_namestr읽기폰트 이름을 가져옵니다.
font_familystr읽기폰트 패밀리를 가져옵니다.
font_stylestr읽기글꼴 스타일을 가져옵니다.
num_glyphsint읽기num glyphs를 가져옵니다.
metricsFontMetrics읽기메트릭을 가져옵니다.
encodingFontEncoding읽기인코딩을 가져옵니다.
glyph_accessorGlyphAccessor읽기글리프 접근자를 가져옵니다.
eot_versionint읽기eot 버전을 가져옵니다.
flagsint읽기플래그를 가져옵니다.
charsetint읽기문자 집합을 가져옵니다.
italicint읽기이탤릭을 가져옵니다.
weightint읽기가중치를 가져옵니다.
fs_typeint읽기fs 유형을 가져옵니다.

메서드

시그니처설명
__init__(inner: TtfFont, eot_version: int, flags: int, charset: int, italic: int, weight: int, fs_type: int)내부 sfnt 글꼴 주위에 EOT 래퍼를 생성합니다.
get_kern_pairs() → list[KernPair]kern pairs를 반환합니다.
`to_bytes(font_type: FontTypeNone)→bytes`
save(path: str)지정된 경로에 EOT 폰트를 파일 시스템에 씁니다.
save_to_format(font_type: FontType, path: str)폰트를 주어진 FontType 형식으로 변환하고 해당 경로에 저장합니다.
convert(target: FontType) → Font지정된 대상 FontType의 새로운 Font 객체를 생성하고 반환합니다

참조

 한국어