pub struct RunProps {Show 22 fields
pub font: Option<String>,
pub font_ea: Option<String>,
pub font_cs: Option<String>,
pub font_sym: Option<String>,
pub size: Option<f64>,
pub bold: Option<bool>,
pub italic: Option<bool>,
pub underline: Option<String>,
pub underline_color: Option<ColorRef>,
pub strike: Option<Strike>,
pub baseline: Option<f64>,
pub caps: Option<Caps>,
pub spacing: Option<f64>,
pub kern: Option<f64>,
pub fill: Option<Fill>,
pub outline: Option<Line>,
pub highlight: Option<ColorRef>,
pub link: Option<Hyperlink>,
pub lang: Option<String>,
pub shadow: Option<Shadow>,
pub glow: Option<Glow>,
pub no_proof: Option<bool>,
}Fields§
§font: Option<String>Latin font family, or a theme reference +mj-lt / +mn-lt.
font_ea: Option<String>§font_cs: Option<String>§font_sym: Option<String>§size: Option<f64>Size in points.
bold: Option<bool>§italic: Option<bool>§underline: Option<String>none, sng, dbl, heavy, dotted, dash, wavy…
underline_color: Option<ColorRef>§strike: Option<Strike>§baseline: Option<f64>Baseline offset as a fraction of the size (0.3 = superscript 30%).
caps: Option<Caps>§spacing: Option<f64>Character spacing in points.
kern: Option<f64>Kern at and above this size (points); 0 = off.
fill: Option<Fill>§outline: Option<Line>§highlight: Option<ColorRef>§link: Option<Hyperlink>§lang: Option<String>§shadow: Option<Shadow>§glow: Option<Glow>§no_proof: Option<bool>Spelling/grammar errors are not flagged.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunProps
impl<'de> Deserialize<'de> for RunProps
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for RunProps
Auto Trait Implementations§
impl Freeze for RunProps
impl RefUnwindSafe for RunProps
impl Send for RunProps
impl Sync for RunProps
impl Unpin for RunProps
impl UnsafeUnpin for RunProps
impl UnwindSafe for RunProps
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