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
FontMetadata.h File Reference
#include <cstdint>
#include <optional>
#include <span>
#include <string>
Include dependency graph for FontMetadata.h:

Classes

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
namespace  donner::svg
 Donner SVG library, which can load, manipulate and render SVG files.

Functions

std::optional< FontMetadatadonner::svg::ParseFontMetadata (std::span< const uint8_t > data)
 Parse CSS-relevant metadata from a raw OpenType/TrueType font file.

Class Documentation

◆ donner::svg::FontMetadata

struct donner::svg::FontMetadata

Metadata extracted from a raw OpenType/TrueType font file.

Class Members
string familyName CSS font-family name from the name table.
int fontStretch = 5 CSS font-stretch (1-9, 5=normal).
int fontStyle = 0 CSS font-style (0=normal, 1=italic, 2=oblique).
int fontWeight = 400 CSS font-weight (100-900).