CffDict

Overview

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

CffDict.from_bytes creates a CffDict instance from the given binary data.

This class provides 4 methods for working with CffDict objects in Python programs. Available methods include: from_bytes, get, set, to_bytes. All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.

Methods

SignatureDescription
from_bytes(data: bytes)"CffDict"Creates a CffDict instance from the given binary data
get(op: int | tuple[int, int], default)Returns the value for the specified operator or the default if missing
set(op: int | tuple[int, int], value: list[int | float])Assigns a list of numbers to the given operator in the dictionary
to_bytes()bytesSerializes the dictionary back into its binary representation

See Also