pub struct StyledChar {
pub ch: char,
pub font_family: String,
pub font_size: f64,
pub font_weight: u32,
pub font_style: FontStyle,
pub color: Color,
pub href: Option<String>,
pub text_decoration: TextDecoration,
pub letter_spacing: f64,
pub word_spacing: f64,
}Expand description
A styled character for multi-style line breaking.
Fields§
§ch: char§font_family: String§font_size: f64§font_weight: u32§font_style: FontStyle§color: Color§href: Option<String>§text_decoration: TextDecoration§letter_spacing: f64§word_spacing: f64Added to the advance of word-separator characters (the space).
Measured here, alongside letter_spacing, so line breaking sees it:
it used to be applied only at PDF-write time via Tw, so a
word-spaced line was broken as though it had no word spacing and
then rendered wider than the box it was measured into.
Trait Implementations§
Source§impl Clone for StyledChar
impl Clone for StyledChar
Auto Trait Implementations§
impl Freeze for StyledChar
impl RefUnwindSafe for StyledChar
impl Send for StyledChar
impl Sync for StyledChar
impl Unpin for StyledChar
impl UnsafeUnpin for StyledChar
impl UnwindSafe for StyledChar
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