pub struct Family<F = Font>where
F: Loader,{
fonts: Vec<F>,
}
Expand description
Defines a set of faces that vary in weight, width or slope.
Fields§
§fonts: Vec<F>
Implementations§
source§impl<F> Family<F>where
F: Loader,
impl<F> Family<F>where
F: Loader,
pub(crate) fn from_font_handles<'a, I>( font_handles: I, ) -> Result<Family<F>, FontLoadingError>
pub(crate) fn from_handle( family_handle: &FamilyHandle, ) -> Result<Family<F>, FontLoadingError>
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for Family<F>
impl<F> RefUnwindSafe for Family<F>where
F: RefUnwindSafe,
impl<F> Send for Family<F>where
F: Send,
impl<F> Sync for Family<F>where
F: Sync,
impl<F> Unpin for Family<F>where
F: Unpin,
impl<F> UnwindSafe for Family<F>where
F: UnwindSafe,
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