Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::fonts::WoffParser Class Reference

Parse a WOFF font file. More...

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

Static Public Member Functions

static ParseResult< WoffFontParse (std::span< const uint8_t > bytes)
 Parse the given WOFF data.
 

Detailed Description

Parse a WOFF font file.

This parser reads the WOFF format (version 1.0), decompresses the font tables, and returns a WoffFont object containing the parsed data.

See also
https://www.w3.org/TR/WOFF/ for the WOFF specification.
Parameters
bytesThe WOFF file data as a byte span.
Returns
A ParseResult containing the parsed WoffFont on success, or a ParseError on failure.

Member Function Documentation

◆ Parse()

ParseResult< WoffFont > donner::fonts::WoffParser::Parse ( std::span< const uint8_t > bytes)
static

Parse the given WOFF data.

Parameters
bytesThe WOFF file data as a byte span.
Returns
A ParseResult containing the parsed WoffFont on success, or a ParseError on failure.

The documentation for this class was generated from the following files: