Layout-only parameters consumed by TextEngine.
Baseline alignment (dominant-baseline / alignment-baseline) is resolved per span into donner::svg::components::ComputedTextComponent::TextSpan::alignmentBaseline rather than carried here, since each span may resolve a different baseline.
| Class Members |
|
bool |
bidiOverride = false |
Whether the <text> element's own unicode-bidi overrides every character to direction (bidi-override or isolate-override). |
|
bool |
bidiPlaintext = false |
Whether the <text> element's own unicode-bidi is plaintext: each paragraph takes its base direction from its first strong character instead of direction. |
|
Direction |
direction = Direction::Ltr |
direction of the <text> element, the base direction of its bidi paragraphs. |
|
SmallVector< RcString, 1 > |
fontFamilies |
|
|
FontKerning |
fontKerning = FontKerning::Auto |
|
|
FontMetrics |
fontMetrics |
|
|
Lengthd |
fontSize |
|
|
optional< double > |
fontSizeAdjust |
|
|
double |
inlineSizePx = 0.0 |
SVG2 inline-size measure in pixels. When greater than 0 (and the writing mode is horizontal or vertical), the engine wraps glyph runs to this measure, producing stacked lines. 0 means no wrapping area (ordinary single-line SVG text). - See also
- https://www.w3.org/TR/SVG2/text.html#InlineSizeProperty
|
|
LengthAdjust |
lengthAdjust = LengthAdjust::Default |
|
|
double |
letterSpacingPx = 0.0 |
|
|
TextAnchor |
textAnchor = TextAnchor::Start |
|
|
double |
textIndentPx = 0.0 |
Signed CSS first-line start margin in pixels. Used only with a positive inlineSizePx; percentages resolve against the own-area measure before layout; em computes in style. Does not affect text paths. |
|
optional< Lengthd > |
textLength |
|
|
Box2d |
viewBox |
|
|
double |
wordSpacingPx = 0.0 |
|
|
WritingMode |
writingMode = WritingMode::HorizontalTb |
|