Struct genpdf::fonts::FontFamily [−][src]
pub struct FontFamily<T: Clone + Debug> { pub regular: T, pub bold: T, pub italic: T, pub bold_italic: T, }
Expand description
A collection of fonts with different styles.
See the module documentation for details on the internals.
Fields
regular: T
The regular variant of this font family.
bold: T
The bold variant of this font family.
italic: T
The italic variant of this font family.
bold_italic: T
The bold italic variant of this font family.
Implementations
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for FontFamily<T> where
T: RefUnwindSafe,
impl<T> Send for FontFamily<T> where
T: Send,
impl<T> Sync for FontFamily<T> where
T: Sync,
impl<T> Unpin for FontFamily<T> where
T: Unpin,
impl<T> UnwindSafe for FontFamily<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more