Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
donner::fonts::WoffFont Struct Reference

In-memory representation of a complete WOFF font. More...

#include "donner/base/fonts/WoffFont.h"

Public Attributes

std::optional< std::string > familyName
 Optional family name, if available.
uint32_t flavor = 0
 SFNT flavor, e.g. 0x00010000 or 'OTTO'.
std::vector< WoffTabletables
 Parsed tables.

Detailed Description

In-memory representation of a complete WOFF font.

flavor stores the sfnt flavor (for example 0x00010000 for TrueType or the four-character code 'OTTO' for OpenType-CFF). The tables vector contains all decompressed tables in the order they were encountered in the source file.

Member Data Documentation

◆ familyName

std::optional<std::string> donner::fonts::WoffFont::familyName

Optional family name, if available.

◆ flavor

uint32_t donner::fonts::WoffFont::flavor = 0

SFNT flavor, e.g. 0x00010000 or 'OTTO'.

◆ tables

std::vector<WoffTable> donner::fonts::WoffFont::tables

Parsed tables.


The documentation for this struct was generated from the following file: