Cff2Diagnostic

Overview

Cff2Diagnostic is a class in Aspose.Font FOSS for Python.

JSON-serializable CFF2 font diagnostic report.

This class declares 2 methods for Cff2Diagnostic objects in Python programs. Available methods include: to_dict, to_json. Public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package. Properties: axes, font_name, has_fvar, num_glyphs, sample_blend_result.

Properties

NameTypeAccessDescription
font_namestrRead/WriteGets or sets the font name.
num_glyphsintRead/WriteGets or sets the num glyphs.
axeslist[Cff2DiagnosticAxis]Read/WriteGets or sets the axes.
has_fvarboolRead/WriteGets or sets the has fvar.
sample_blend_resultfloat | NoneRead/WriteGets or sets the sample blend result.

Methods

SignatureDescription
to_dict() → dict[str, Any]Return dict suitable for JSON serialization.
to_json(path: str | Path)Write diagnostic to JSON file.

See Also