pub struct FileBackedFontFamily {
pub fonts: Vec<FontFile>,
}Expand description
A font family made of font files, one for each weight and style.
Fields§
§fonts: Vec<FontFile>The files of the family. Never empty when built with FileBackedFontFamily::new.
Implementations§
Source§impl FileBackedFontFamily
impl FileBackedFontFamily
Sourcepub fn new(
fonts: Vec<FontFile>,
) -> Result<FileBackedFontFamily, FontFamilyError>
pub fn new( fonts: Vec<FontFile>, ) -> Result<FileBackedFontFamily, FontFamilyError>
Builds a family from fonts, or returns FontFamilyError::EmptyFileList when the list
is empty.
Trait Implementations§
Source§impl Clone for FileBackedFontFamily
impl Clone for FileBackedFontFamily
Source§fn clone(&self) -> FileBackedFontFamily
fn clone(&self) -> FileBackedFontFamily
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileBackedFontFamily
impl Debug for FileBackedFontFamily
impl Eq for FileBackedFontFamily
Source§impl Hash for FileBackedFontFamily
impl Hash for FileBackedFontFamily
Source§impl PartialEq for FileBackedFontFamily
impl PartialEq for FileBackedFontFamily
impl StructuralPartialEq for FileBackedFontFamily
Auto Trait Implementations§
impl Forget for FileBackedFontFamily
impl Freeze for FileBackedFontFamily
impl Move for FileBackedFontFamily
impl RefUnwindSafe for FileBackedFontFamily
impl Send for FileBackedFontFamily
impl Sync for FileBackedFontFamily
impl Unpin for FileBackedFontFamily
impl UnsafeUnpin for FileBackedFontFamily
impl UnwindSafe for FileBackedFontFamily
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more