Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
Woff2Parser.h File Reference
#include <cstddef>
#include <cstdint>
#include <span>
#include <vector>
#include "donner/base/ParseResult.h"
Include dependency graph for Woff2Parser.h:

Classes

class  donner::fonts::Woff2Parser
 Decompress a WOFF2 font file into a raw TTF/OTF byte stream. More...
struct  donner::fonts::Woff2Parser::Options
 Resource ceilings and pinned-font constraints for one WOFF2 decode. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.

Class Documentation

◆ donner::fonts::Woff2Parser::Options

struct donner::fonts::Woff2Parser::Options

Resource ceilings and pinned-font constraints for one WOFF2 decode.

Class Members
size_t expectedOutputSize = 0
size_t maximumBrotliMemory = 0 Zero preserves generic decoder allocation behavior. Nonzero bounds all live Brotli allocations for this decode, including state, buffers and aligned accounting headers.
size_t maximumInputSize = 16 * 1024 * 1024 Encoded WOFF2 input bytes.
size_t maximumIntermediateSize = 16 * 1024 * 1024 Intermediate decode storage bytes.
size_t maximumOutputSize = 64 * 1024 * 1024 Reconstructed sfnt output bytes.
size_t maximumTableCount = 4096 Accepted sfnt table records. Nonzero for a build-pinned font whose exact reconstructed length is known. Uses one fixed output vector instead of a growing string followed by a copy; header and result must match.
size_t maximumTransformedGlyfSize = 4 * 1024 * 1024 Transformed glyf table bytes.
bool requireTrueTypeOutlines = false Restrict a pinned TrueType-only catalog without weakening generic full-text format support.