CompatibilityChecker
Overview
CompatibilityChecker is a class in Aspose.Font FOSS for Python.
CompatibilityChecker.compare_fonts(before, after, before_label, after_label, codepoints, text) produces a CompatibilityReport that can be exported to JSON via report.to_json(indent=2, sort_keys=True).
This class provides 2 methods for working with CompatibilityChecker objects in Python programs.
Available methods include: compare_fonts, compare_variable_instances.
All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.
Methods
| Signature | Description |
|---|---|
compare_fonts(before: Font, after: Font, before_label: str, after_label: str, codepoints: list[int] | tuple[int, ...] | None, text: str) → CompatibilityReport | Compares two Font objects (before and after) with optional labels, codepoints, and text, returning a CompatibilityReport |
compare_variable_instances(font, before_coordinates: dict[str, float] | None, after_coordinates: dict[str, float] | None, before_instance_name: str | None, after_instance_name: str | None, codepoints: list[int] | tuple[int, ...] | None, text: str) → CompatibilityReport | Compares variable‑font instances or coordinates (before and after) with optional names, codepoints, and text, returning a CompatibilityReport |