Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
TextComponent.h File Reference
#include <optional>
#include "donner/base/Length.h"
#include "donner/base/RcString.h"
#include "donner/svg/core/LengthAdjust.h"
Include dependency graph for TextComponent.h:

Classes

struct  donner::svg::components::TextComponent
 Defines the start of a text element, which may have other text elements as children. More...
 

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.
 
namespace  donner::svg::components
 Contains the implementation of the Donner ECS,.
 

Class Documentation

◆ donner::svg::components::TextComponent

struct donner::svg::components::TextComponent

Defines the start of a text element, which may have other text elements as children.

Created on each "<text>", "<tspan>", and xml_textPath element.

Collaboration diagram for donner::svg::components::TextComponent:
[legend]
Class Members
LengthAdjust lengthAdjust = LengthAdjust::Default How to adjust the text length, either by adding spacing between glyphs or stretching the glyphs themselves.
RcString text Text content.
optional< Lengthd > textLength Override for the text length. If empty, the property is not set.