pub struct TextChunk {
pub x: Option<f64>,
pub y: Option<f64>,
pub anchor: TextAnchor,
pub spans: Vec<TextSpan>,
pub text_flow: TextFlow,
pub text: String,
}
Expand description
A text chunk.
Text alignment and BIDI reordering can only be done inside a text chunk.
Fields§
§x: Option<f64>
An absolute X axis offset.
y: Option<f64>
An absolute Y axis offset.
anchor: TextAnchor
A text anchor.
spans: Vec<TextSpan>
A list of text chunk style spans.
text_flow: TextFlow
A text chunk flow.
text: String
A text chunk actual text.