FontRepository

FontRepository

개요

FontRepository은 Aspose.PDF FOSS에서 Python용 클래스입니다.

폰트 소스를 집계하고 이름으로 폰트를 해석합니다.

이 클래스는 Python 프로그램에서 FontRepository 객체를 다루기 위한 8개의 메서드를 제공합니다. 사용 가능한 메서드에는 add_source, clear_sources, find_font, get_available_fonts, get_sources, open_font, reset_sources, search가 포함됩니다. Aspose.PDF FOSS for Python 패키지를 설치한 후에는 모든 Python 애플리케이션에서 공개 멤버에 접근할 수 있습니다.

메서드

시그니처설명
add_source(source: FontSource)Register source; 소스는 우선 순위가 가장 높은 것부터 조회됩니다.
clear_sources()등록된 모든 소스를 제거합니다 (시스템 소스 포함).
reset_sources()기본 소스 목록을 복원합니다 (시스템 글꼴만).
get_sources() → list[FontSource]등록된 소스를 조회 순서대로 반환합니다.
get_available_fonts() → list[FontDescriptor]발견 가능한 모든 폰트를 반환하고, 소스 간 중복을 제거합니다.
find_font(font_name: str) → `FontDescriptorNone`
search(font_name: str) → `FontDescriptorNone`
open_font(font_name: str) → `bytesNone`

참조

 한국어