|
|
Donner SVG 0.8.0-pre
SVG editor and embeddable C++20 engine.
|
Decompress a WOFF2 font file into a raw TTF/OTF byte stream. More...
#include "donner/base/fonts/Woff2Parser.h"
Classes | |
| struct | Options |
Static Public Member Functions | |
| static ParseResult< std::vector< uint8_t > > | Decompress (std::span< const uint8_t > woff2Data) |
| Decompress WOFF2 data into a flat TTF/OTF byte stream. | |
| static ParseResult< std::vector< uint8_t > > | Decompress (std::span< const uint8_t > woff2Data, const Options &options) |
| Decompress using explicit compressed and expanded byte limits. | |
Decompress a WOFF2 font file into a raw TTF/OTF byte stream.
WOFF2 fonts use Brotli compression and a custom table transform to achieve higher compression ratios than WOFF 1.0. This parser delegates to the Google woff2 library (decode-only) to reconstruct the sfnt byte stream.
| struct donner::fonts::Woff2Parser::Options |
|
static |
Decompress WOFF2 data into a flat TTF/OTF byte stream.
| woff2Data | The WOFF2 file data as a byte span. |