Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::svg::FontFaceRequest Struct Reference

Which face inside a family a font-family lookup wants, taken from the element's computed CSS font properties. More...

#include "donner/svg/resources/FontCatalogTypes.h"

Public Member Functions

bool operator== (const FontFaceRequest &other) const =default
 Equality comparison.

Public Attributes

int weight = 400
 CSS font-weight, 100-900 (700 = bold).
FontStyle style = FontStyle::Normal
 CSS font-style.
FontStretch stretch = FontStretch::Normal
 CSS font-stretch.

Detailed Description

Which face inside a family a font-family lookup wants, taken from the element's computed CSS font properties.

A family is a set of faces, not one file: "Helvetica" covers Regular, Bold, Oblique, and Bold Oblique. Providers must honour this or font-weight: bold silently renders as regular.

See also
https://www.w3.org/TR/css-fonts-4/#font-matching-algorithm

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