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. | |
Text chunk boundary for per-chunk text-anchor adjustment.
| bool donner::svg::text_engine_detail::ChunkBoundary::absoluteX = false |
This boundary applies an authored absolute x position.
| bool donner::svg::text_engine_detail::ChunkBoundary::absoluteY = false |
This boundary applies an authored absolute y position.
| 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.
| double donner::svg::text_engine_detail::ChunkBoundary::authoredShift = 0.0 |
Authored inline shift (dx in horizontal text) included in the chunk's origin.
| size_t donner::svg::text_engine_detail::ChunkBoundary::glyphIndex = 0 |
Glyph index within the run where the chunk begins.
| 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.
| bool donner::svg::text_engine_detail::ChunkBoundary::rightToLeft = false |
The chunk's first span progresses right to left on its line.
| size_t donner::svg::text_engine_detail::ChunkBoundary::runIndex = 0 |
Index of the run that starts this chunk.
| TextAnchor donner::svg::text_engine_detail::ChunkBoundary::textAnchor = TextAnchor::Start |
Effective text-anchor for the chunk.
| std::optional<std::pair<size_t, size_t> > donner::svg::text_engine_detail::ChunkBoundary::visualFirstGlyph |