Donner 0.5.0
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
TextPathComponent.h File Reference
#include <optional>
#include "donner/base/Length.h"
#include "donner/base/RcString.h"
Include dependency graph for TextPathComponent.h:

Classes

struct  donner::svg::components::TextPathComponent
 Stores attributes specific to "<textPath>" elements. 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,.

Enumerations

enum class  donner::svg::components::TextPathMethod {
  donner::svg::components::Align ,
  donner::svg::components::Stretch
}
 Method for placing glyphs along a path in "<textPath>". More...
enum class  donner::svg::components::TextPathSide {
  donner::svg::components::Left ,
  donner::svg::components::Right
}
 Which side of the path to render text in "<textPath>". More...
enum class  donner::svg::components::TextPathSpacing {
  donner::svg::components::Auto ,
  donner::svg::components::Exact
}
 Spacing mode for "<textPath>". More...

Class Documentation

◆ donner::svg::components::TextPathComponent

struct donner::svg::components::TextPathComponent

Stores attributes specific to "<textPath>" elements.

The <textPath> element renders text along an arbitrary path referenced by href.

Collaboration diagram for donner::svg::components::TextPathComponent:
[legend]
Class Members
RcString href Reference to a <path> element (IRI fragment, e.g., "#myPath").
TextPathMethod method = TextPathMethod::Align How glyphs are placed on the path.
TextPathSide side = TextPathSide::Left Which side of the path to render text.
TextPathSpacing spacing = TextPathSpacing::Exact Spacing control.
optional< Lengthd > startOffset Offset along the path where text begins. Percentages are relative to path length.