pub struct TextRun {
pub text: String,
pub postscript: String,
pub family: String,
pub weight: i64,
pub italic: bool,
pub size: f64,
pub tracking: f64,
pub leading: Option<f64>,
pub fill: Paint,
}Expand description
A run of text with one set of character attributes.
Fields§
§text: String§postscript: StringPostScript name and family of the chosen font.
family: String§weight: i64CSS weight (400 regular, 700 bold).
italic: bool§size: f64Font size in document pixels, before the node’s transform.
tracking: f64Tracking in em.
leading: Option<f64>Fixed line pitch in document pixels, when the run overrides automatic leading.
fill: PaintTrait Implementations§
impl StructuralPartialEq for TextRun
Auto Trait Implementations§
impl Forget for TextRun
impl Freeze for TextRun
impl Move for TextRun
impl RefUnwindSafe for TextRun
impl Send for TextRun
impl Sync for TextRun
impl Unpin for TextRun
impl UnsafeUnpin for TextRun
impl UnwindSafe for TextRun
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