CompatibilityReport
Overview
CompatibilityReport is a class in Aspose.Font FOSS for Python.
CompatibilityReport.to_json(indent, sort_keys) returns a JSON string of the report, and write_json(target, indent, sort_keys) writes that JSON directly to a file.
This class provides 3 methods for working with CompatibilityReport objects in Python programs.
Available methods include: to_dict, to_json, write_json.
All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.
Properties: after_label, after_normalized_coordinates, before_label, before_normalized_coordinates, checked_codepoints, compared_glyphs, and 3 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
is_compatible | bool | Read | Gets the is compatible. |
before_label | str | Read | Gets the before label. |
after_label | str | Read | Gets the after label. |
checked_codepoints | tuple[int, ...] | Read | Gets the checked codepoints. |
compared_glyphs | int | Read | Gets the compared glyphs. |
before_normalized_coordinates | dict[str, float] | Read | Gets the before normalized coordinates. |
after_normalized_coordinates | dict[str, float] | Read | Gets the after normalized coordinates. |
issues | tuple[GlyphCompatibilityIssue, ...] | Read | Gets the issues. |
interpolation_issues | tuple[GlyphInterpolationIssue, ...] | Read | Gets the interpolation issues. |
Methods
| Signature | Description |
|---|---|
to_dict() → dict[str, object] | Returns a dictionary representation of the compatibility report |
to_json(indent: int, sort_keys: bool) → str | Returns a JSON string of the report, and write_json(target, indent, sort_keys) writes that JSON directly to a file |
write_json(target: str | Path, indent: int, sort_keys: bool) | Writes the report as JSON to the given file path with formatting options |