CompatibilityReport
概要
CompatibilityReport は Aspose.Font の Python 用 FOSS のクラスです。
CompatibilityReport.to_json(indent, sort_keys) はレポートの JSON 文字列を返し、write_json(target, indent, sort_keys) はその JSON を直接ファイルに書き込みます。
このクラスは Python プログラムで CompatibilityReport オブジェクトを扱うための 3 つのメソッドを提供します。利用可能なメソッドは to_dict、to_json、write_json です。Aspose.Font の Python 用 FOSS パッケージをインストールすると、すべてのパブリックメンバーが任意の Python アプリケーションからアクセス可能になります。プロパティ: after_label、after_normalized_coordinates、before_label、before_normalized_coordinates、checked_codepoints、compared_glyphs、およびその他 3 つ。
プロパティ
| 名前 | 型 | アクセス | 説明 |
|---|---|---|---|
is_compatible | bool | 読み取り | 互換性があるかどうかを取得します。 |
before_label | str | 読み取り | before label を取得します。 |
after_label | str | 読み取り | after ラベルを取得します。 |
checked_codepoints | tuple[int, ...] | 読み取り | チェックされたコードポイントを取得します。 |
compared_glyphs | int | 読み取り | 比較されたグリフを取得します。 |
before_normalized_coordinates | dict[str, float] | 読み取り | 正規化前の座標を取得します。 |
after_normalized_coordinates | dict[str, float] | 読み取り | 正規化後の座標を取得します。 |
issues | tuple[GlyphCompatibilityIssue, ...] | 読み取り | 問題を取得します。 |
interpolation_issues | tuple[GlyphInterpolationIssue, ...] | 読み取り | 補間の問題を取得します。 |
メソッド
| シグネチャ | 説明 |
|---|---|
to_dict() → dict[str, object] | 互換性レポートの辞書表現を返します |
to_json(indent: int, sort_keys: bool) → str | レポートのJSON文字列を返し、write_json(target, indent, sort_keys)はそのJSONを直接ファイルに書き込みます |
| `write_json(target: str | Path, indent: int, sort_keys: bool)` |