[−][src]Struct google_docs1::WeightedFontFamily
Represents a font family and weight of text.
This type is not used in any activity, and only used as part of another schema.
Fields
font_family: Option<String>The font family of the text.
The font family can be any font from the Font menu in Docs or from
[Google Fonts] (https://fonts.google.com/). If the font name is
unrecognized, the text is rendered in Arial.
weight: Option<i32>The weight of the font. This field can have any value that is a multiple of
100 between 100 and 900, inclusive. This range corresponds to the
numerical values described in the CSS 2.1 Specification,
section 15.6, with
non-numerical values disallowed.
The default value is 400 ("normal").
The font weight makes up just one component of the rendered font weight.
The rendered weight is determined by a combination of the weight and the
text style's resolved bold value, after accounting for inheritance:
- If the text is bold and the weight is less than
400, the rendered weight is 400. - If the text is bold and the weight is greater than or equal to
400but is less than700, the rendered weight is700. - If the weight is greater than or equal to
700, the rendered weight is equal to the weight. - If the text is not bold, the rendered weight is equal to the weight.
Trait Implementations
impl Clone for WeightedFontFamily[src]
fn clone(&self) -> WeightedFontFamily[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for WeightedFontFamily[src]
impl Default for WeightedFontFamily[src]
fn default() -> WeightedFontFamily[src]
impl<'de> Deserialize<'de> for WeightedFontFamily[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Part for WeightedFontFamily[src]
impl Serialize for WeightedFontFamily[src]
Auto Trait Implementations
impl RefUnwindSafe for WeightedFontFamily
impl Send for WeightedFontFamily
impl Sync for WeightedFontFamily
impl Unpin for WeightedFontFamily
impl UnwindSafe for WeightedFontFamily
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Typeable for T where
T: Any,
T: Any,