Internal Compression Utilities

Internal Compression Utilities

Internal Compression Utilities

Aspose.Font FOSS for Python bundles a pure-Python Brotli implementation used internally for WOFF2 decompression and compression. These utilities are in the aspose_font._brotli namespace and are not part of the public API.


BrotliDecoder and BrotliEncoder

BrotliDecoder and BrotliEncoder are the top-level classes for Brotli decompression and compression respectively. They are used automatically when loading or saving WOFF2 files.


Note on Direct Usage

These classes are internal implementation details. For WOFF2 processing, use FontLoader.open() and FontConverter.convert() — these call the Brotli utilities transparently.


API Reference Summary

ClassDescription
BrotliDecoderPure-Python Brotli decompressor (internal)
BrotliEncoderPure-Python Brotli compressor (internal)