---
Product: Aspose.Font
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/font/python/cff2diagnostic
---

# 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

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `font_name` | `str` | Read/Write | Gets or sets the font name. |
| `num_glyphs` | `int` | Read/Write | Gets or sets the num glyphs. |
| `axes` | `list[Cff2DiagnosticAxis]` | Read/Write | Gets or sets the axes. |
| `has_fvar` | `bool` | Read/Write | Gets or sets the has fvar. |
| `sample_blend_result` | `float \| None` | Read/Write | Gets or sets the sample blend result. |

## Methods

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

## See Also

- [Aspose.Font — Enterprise API Reference](https://reference.aspose.com/font/)