pub struct TextLine {
pub s: String,
pub math: Option<MathSpan>,
pub halign: i8,
pub valign: i8,
pub text_offset: f64,
pub bold: bool,
pub italic: bool,
pub family: Option<String>,
pub size_pt: Option<f64>,
pub rotate: Option<f64>,
pub aligned: bool,
}Expand description
A line of attached text with placement hints.
Fields§
§s: String§math: Option<MathSpan>rpic texlabels extension: when set, this line is a typeset math
formula and s keeps the original literal for fallback/diagnostics.
halign: i8horizontal: -1 = ljust, 0 = center, +1 = rjust.
valign: i8vertical: +1 = above, 0 = center, -1 = below.
text_offset: f64Extra text-position offset in inches (textoffset).
bold: boolrpic extension: bold face (bold).
italic: boolrpic extension: italic face (italic).
family: Option<String>rpic extension: font family — Some("monospace") from mono, or the
family given to font "…". None follows the root <svg> family.
size_pt: Option<f64>rpic extension: explicit size in points (fontsize); None keeps
classic sizing (11 pt attached, height-derived standalone).
rotate: Option<f64>rpic extension: rotation in degrees, CCW (rotated); applied about
the line’s anchor point in the SVG.
aligned: boolrpic extension: aligned — rotate to the host segment’s angle. Set
during text collection; the linear-object eval resolves it into
rotate once the segment’s start/end are known.