Donner SVG main
0.8.0 ยท 766e862a0.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
bool rightToLeft = false
 The chunk's first span progresses right to left on its line.
double authoredShift = 0.0
 Authored inline shift (dx in horizontal text) included in the chunk's origin.
std::optional< bool > paragraphRightToLeft
 Base direction the chunk's paragraph detected under unicode-bidi: plaintext, which then replaces the span's direction for anchoring and continuation; unset otherwise.

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.

◆ authoredShift

double donner::svg::text_engine_detail::ChunkBoundary::authoredShift = 0.0

Authored inline shift (dx in horizontal text) included in the chunk's origin.

◆ glyphIndex

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

Glyph index within the run where the chunk begins.

◆ paragraphRightToLeft

std::optional<bool> donner::svg::text_engine_detail::ChunkBoundary::paragraphRightToLeft

Base direction the chunk's paragraph detected under unicode-bidi: plaintext, which then replaces the span's direction for anchoring and continuation; unset otherwise.

◆ rightToLeft

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

The chunk's first span progresses right to left on its line.

◆ 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: