|
|
Donner 0.5.0
Embeddable browser-grade SVG2 engine
|
Decompress a WOFF2 font file into a raw TTF/OTF byte stream. More...
#include "donner/base/fonts/Woff2Parser.h"
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. | |
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.
|
static |
Decompress WOFF2 data into a flat TTF/OTF byte stream.
| woff2Data | The WOFF2 file data as a byte span. |