pub struct TextProperties {
pub font_family: Option<String>,
pub size: Option<Measure>,
pub bold: Option<bool>,
pub italic: Option<bool>,
pub underline: Option<bool>,
pub strike: Option<bool>,
pub color: Option<Color>,
pub background: Option<Color>,
pub position: Option<Position>,
pub uppercase: Option<bool>,
}Expand description
Character formatting.
Fields§
§font_family: Option<String>The family asked for, after a style:font-name has been resolved through
the document’s font face declarations.
size: Option<Measure>Size, absolute or a proportion of the parent’s.
bold: Option<bool>Bold.
italic: Option<bool>Italic or oblique, which are not distinguished here because a renderer picking a face cannot honour the difference.
underline: Option<bool>Underlined, of any line style.
strike: Option<bool>Struck through, of any line style.
color: Option<Color>Ink colour.
background: Option<Color>Highlight behind the characters.
position: Option<Position>Superscript or subscript.
uppercase: Option<bool>Drawn in capitals whatever the text says.
Trait Implementations§
Source§impl Clone for TextProperties
impl Clone for TextProperties
Source§impl Debug for TextProperties
impl Debug for TextProperties
Source§impl Default for TextProperties
impl Default for TextProperties
Source§impl PartialEq for TextProperties
impl PartialEq for TextProperties
impl StructuralPartialEq for TextProperties
Auto Trait Implementations§
impl Freeze for TextProperties
impl RefUnwindSafe for TextProperties
impl Send for TextProperties
impl Sync for TextProperties
impl Unpin for TextProperties
impl UnsafeUnpin for TextProperties
impl UnwindSafe for TextProperties
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