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>,
}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.
Trait Implementations§
impl StructuralPartialEq for TextLine
Auto Trait Implementations§
impl Freeze for TextLine
impl RefUnwindSafe for TextLine
impl Send for TextLine
impl Sync for TextLine
impl Unpin for TextLine
impl UnsafeUnpin for TextLine
impl UnwindSafe for TextLine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more