SmartInstancer

개요

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

SmartInstancer.instantiate(coordinates, instance_name, naming_strategy, family_suffix, legacy_family_name, typographic_family_name, legacy_style_name, typographic_style_name, stat_policy)는 가변 폰트의 정적 인스턴스를 나타내는 TtfFont 객체를 반환합니다.

이 클래스는 Python 프로그램에서 SmartInstancer 객체를 다루기 위한 32개의 메서드를 제공합니다. 사용 가능한 메서드에는 __init__, build_axis_grid_previews, build_axis_grid_sheet, build_axis_grid_web_bundles, build_axis_grid_web_family_package, build_comparison_sheet, build_delta_comparison_sheet, build_delta_sheet, build_delta_text_comparison_sheet, build_delta_text_sheet, build_family_review_board, build_family_review_export_package 및 추가 20개의 메서드가 포함됩니다. 모든 공개 멤버는 Aspose.Font FOSS for Python 패키지를 설치한 후 Python 응용 프로그램 어디서든 접근할 수 있습니다. 속성: axes, default_coordinates, font, named_instances.

속성

이름유형액세스설명
font"TtfFont"읽기폰트를 가져옵니다.
axes``읽기축을 가져옵니다.
named_instances``읽기이름이 지정된 인스턴스를 가져옵니다.
default_coordinatesdict[str, float]읽기기본 좌표를 가져옵니다.

메서드

시그니처설명
__init__(font: "TtfFont")Calls init 이 SmartInstancer 인스턴스에서.
suggest_axis_values(axis_tag: str, include_default: bool, include_bounds: bool) → list[float]축에 대한 권장 부동소수점 값을 반환하며, 기본값 및 범위를 선택적으로 포함합니다
`resolve_axis_grid(axis_tag: str, values: list[floatstr]
`resolve(coordinates: dict[str, floatstr]
`instantiate(coordinates: dict[str, floatstr]
`preview_naming_policy(coordinates: dict[str, floatstr]
`instantiate_named(name: str, coordinates: dict[str, floatstr]
`resolve_named_many(names: list[str]tuple[str, …]
`instantiate_many(names: list[str]tuple[str, …]
`build_web_bundle(coordinates: dict[str, float]None, instance_name: str
`build_preview(coordinates: dict[str, floatstr]
`build_web_bundles(names: list[str]tuple[str, …]
`build_axis_grid_web_bundles(axis_tag: str, values: list[floatstr]
`build_axis_grid_web_family_package(axis_tag: str, values: list[floatstr]
`build_previews(names: list[str]tuple[str, …]
`build_web_family_package(names: list[str]tuple[str, …]
`build_axis_grid_previews(axis_tag: str, values: list[float]tuple[float, …], secondary_axis_tag: str
`build_axis_grid_sheet(axis_tag: str, values: list[float]tuple[float, …], secondary_axis_tag: str
`build_comparison_sheet(before_coordinates: dict[str, float]None, after_coordinates: dict[str, float]
`build_waterfall_sheet(names: list[str]tuple[str, …]
`build_matrix_sheet(names: list[str]tuple[str, …]
`build_family_review_board(names: list[str]tuple[str, …]
`build_family_review_export_package(names: list[str]tuple[str, …]
`check_compatibility(before_coordinates: dict[str, float]None, after_coordinates: dict[str, float]
`inspect_deltas(glyph_id: intNone, codepoint: int
`build_delta_sheet(glyph_id: intNone, codepoint: int
`inspect_delta_text(text: str, coordinates: dict[str, float]None, instance_name: str
`compare_delta_glyph(glyph_id: intNone, codepoint: int
`compare_delta_text(text: str, before_coordinates: dict[str, float]None, after_coordinates: dict[str, float]
`build_delta_text_sheet(text: str, coordinates: dict[str, float]None, instance_name: str
`build_delta_text_comparison_sheet(text: str, before_coordinates: dict[str, float]None, after_coordinates: dict[str, float]
`build_delta_comparison_sheet(glyph_id: intNone, codepoint: int

참조

 한국어