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
FontFace.h File Reference
#include <cstdint>
#include <memory>
#include <variant>
#include <vector>
#include "donner/base/RcString.h"
Include dependency graph for FontFace.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  donner::css::FontFaceSource
 A single entry listed in src:-either a local face, a URL, or inline data. More...
struct  donner::css::FontFace
 In-memory representation of a single @font-face rule. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
namespace  donner::css
 Donner CSS library, a standalone composable CSS parser.

Class Documentation

◆ donner::css::FontFace

struct donner::css::FontFace

In-memory representation of a single @font-face rule.

Class Members
RcString familyName font-family descriptor
int fontStretch = 5 font-stretch descriptor (1-9, 5=normal, matching FontStretch enum)
int fontStyle = 0 font-style descriptor (0=normal, 1=italic, 2=oblique)
int fontWeight = 400 font-weight descriptor (100-900, 400=normal, 700=bold)
vector< FontFaceSource > sources ordered src list