|
|
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.
|
Result of preparing a text-to-outline conversion. More...
#include "donner/editor/TextToOutlines.h"
Public Attributes | |
| bool | ok = false |
| Whether the conversion can be applied. When false, error describes why and no elements were built - the caller must not mutate the document. | |
| std::string | error |
| Human-readable failure reason for the user when ok is false. Names the blocking element where possible. | |
| std::optional< svg::SVGElement > | outlineGroup |
| The detached replacement <g> group (style attributes applied, no children yet). Populated when ok. Insert it before the original <text>, then insert each of outlinePaths into it in order. | |
| std::vector< svg::SVGElement > | outlinePaths |
| Detached <path> elements, one per non-empty placed glyph, in paint order. Insert into outlineGroup in this order. | |
| std::string | outlineGroupId |
| The id of the replacement outline <g> group. Always populated when ok; the caller selects this after applying the edits. | |
Result of preparing a text-to-outline conversion.
| std::string donner::editor::ConvertTextToOutlinesResult::error |
Human-readable failure reason for the user when ok is false. Names the blocking element where possible.
| bool donner::editor::ConvertTextToOutlinesResult::ok = false |
Whether the conversion can be applied. When false, error describes why and no elements were built - the caller must not mutate the document.
| std::optional<svg::SVGElement> donner::editor::ConvertTextToOutlinesResult::outlineGroup |
The detached replacement <g> group (style attributes applied, no children yet). Populated when ok. Insert it before the original <text>, then insert each of outlinePaths into it in order.
| std::string donner::editor::ConvertTextToOutlinesResult::outlineGroupId |
The id of the replacement outline <g> group. Always populated when ok; the caller selects this after applying the edits.
| std::vector<svg::SVGElement> donner::editor::ConvertTextToOutlinesResult::outlinePaths |
Detached <path> elements, one per non-empty placed glyph, in paint order. Insert into outlineGroup in this order.