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.
Loading...
Searching...
No Matches
donner::editor::ConvertTextToOutlinesResult Struct Reference

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::SVGElementoutlineGroup
 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::SVGElementoutlinePaths
 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.

Detailed Description

Result of preparing a text-to-outline conversion.

Member Data Documentation

◆ error

std::string donner::editor::ConvertTextToOutlinesResult::error

Human-readable failure reason for the user when ok is false. Names the blocking element where possible.

◆ ok

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.

◆ outlineGroup

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.

◆ outlineGroupId

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.

◆ outlinePaths

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.


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