Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::svg::text_engine_detail::ChunkBoundary Struct Reference

Text chunk boundary for per-chunk text-anchor adjustment. More...

#include "donner/svg/text/TextEngineHelpers.h"

Public Attributes

size_t runIndex = 0
 Index of the run that starts this chunk.
size_t glyphIndex = 0
 Glyph index within the run where the chunk begins.
TextAnchor textAnchor = TextAnchor::Start
 Effective text-anchor for the chunk.
bool absoluteX = false
 This boundary applies an authored absolute x position.
bool absoluteY = false
 This boundary applies an authored absolute y position.
std::optional< double > anchorPosition
 Explicit inline origin, independent of run storage. First visual glyph used to carry a y-only continuation through textLength adjustment.
std::optional< std::pair< size_t, size_t > > visualFirstGlyph

Detailed Description

Text chunk boundary for per-chunk text-anchor adjustment.

Member Data Documentation

◆ absoluteX

bool donner::svg::text_engine_detail::ChunkBoundary::absoluteX = false

This boundary applies an authored absolute x position.

◆ absoluteY

bool donner::svg::text_engine_detail::ChunkBoundary::absoluteY = false

This boundary applies an authored absolute y position.

◆ anchorPosition

std::optional<double> donner::svg::text_engine_detail::ChunkBoundary::anchorPosition

Explicit inline origin, independent of run storage. First visual glyph used to carry a y-only continuation through textLength adjustment.

◆ glyphIndex

size_t donner::svg::text_engine_detail::ChunkBoundary::glyphIndex = 0

Glyph index within the run where the chunk begins.

◆ runIndex

size_t donner::svg::text_engine_detail::ChunkBoundary::runIndex = 0

Index of the run that starts this chunk.

◆ textAnchor

TextAnchor donner::svg::text_engine_detail::ChunkBoundary::textAnchor = TextAnchor::Start

Effective text-anchor for the chunk.

◆ visualFirstGlyph

std::optional<std::pair<size_t, size_t> > donner::svg::text_engine_detail::ChunkBoundary::visualFirstGlyph

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