pub struct FontFiles {
pub faces: Vec<TextFont>,
pub bytes: Vec<Arc<[u8]>>,
}Expand description
The faces a host registers from a list of font files, and each file’s
bytes (fonts_from_files).
Fields§
§faces: Vec<TextFont>Every face, in fallback order, sharing its file’s bytes.
bytes: Vec<Arc<[u8]>>Each file’s bytes, read once, in the order given.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FontFiles
impl RefUnwindSafe for FontFiles
impl Send for FontFiles
impl Sync for FontFiles
impl Unpin for FontFiles
impl UnsafeUnpin for FontFiles
impl UnwindSafe for FontFiles
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