pub struct Font {
pub name: String,
pub size: f32,
pub bold: bool,
pub italic: bool,
pub underline: Underline,
pub strike: bool,
pub color: Color,
pub vert: VertAlign,
pub charset: Option<u8>,
pub family: Option<u8>,
pub minor: bool,
}Fields§
§name: String§size: f32§bold: bool§italic: bool§underline: Underline§strike: bool§color: Color§vert: VertAlign§charset: Option<u8>Windows character set the font was chosen for (178 = Arabic); kept so Excel substitutes a font for the same script.
family: Option<u8>Font family class (1 roman, 2 swiss, 3 modern…); None is swiss, the default.
minor: boolThe font follows the theme’s body font (<scheme val="minor"/>) while its face is the
theme’s minor font. Fonts derived from it (bold, a colour, a size) keep the link.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Font
impl<'de> Deserialize<'de> for Font
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 Eq for Font
impl StructuralPartialEq for Font
Auto Trait Implementations§
impl Freeze for Font
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnsafeUnpin for Font
impl UnwindSafe for Font
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.