|
NovaSVG 0.10.0
A header-only SVG library
|
The faces a <foreignObject> can paint with: its own font plus the bold / italic variants of it that , , , and inline font-weight / font-style ask for.
More...
#include <svgelement.h>

Public Member Functions | |
| const Font & | get (unsigned char style) const |
Public Attributes | |
| Font | face [4] |
Static Public Attributes | |
| static constexpr unsigned char | Bold = 1 |
| static constexpr unsigned char | Italic = 2 |
The faces a <foreignObject> can paint with: its own font plus the bold / italic variants of it that , , , and inline font-weight / font-style ask for.
Indexed by style bits (bit 0 = bold, bit 1 = italic), so get(Bold | Italic) is the bold italic face. Variants nothing asked for may stay null. Each one is looked up exactly like SVG <text> looks up its font for the same weight/style, so the result is whatever faces the machine (or an @font-face) provides – there is no synthetic emboldening or slanting: with no bold face installed, bold text simply renders in the regular face, as it does for <text>.
Definition at line 1171 of file svgelement.h.
|
inline |
Definition at line 1176 of file svgelement.h.
References style.
Referenced by novasvg::measureForeignObjectSegments().
|
staticconstexpr |
Definition at line 1172 of file svgelement.h.
Referenced by novasvg::SVGForeignObjectElement::fontsFor(), and novasvg::SVGForeignObjectElement::layoutElement().
| Font novasvg::ForeignObjectFonts::face[4] |
Definition at line 1175 of file svgelement.h.
Referenced by novasvg::measureForeignObjectContent().
|
staticconstexpr |
Definition at line 1173 of file svgelement.h.
Referenced by novasvg::SVGForeignObjectElement::fontsFor(), and novasvg::SVGForeignObjectElement::layoutElement().