pub struct TextFont {
pub family: String,
pub bytes: Arc<[u8]>,
pub face_index: u32,
}Expand description
One caller-owned font registered in fallback order.
Fields§
§family: StringStable family name used in cache keys and diagnostics.
bytes: Arc<[u8]>OpenType font bytes.
face_index: u32Face index for font collections.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextFont
impl RefUnwindSafe for TextFont
impl Send for TextFont
impl Sync for TextFont
impl Unpin for TextFont
impl UnsafeUnpin for TextFont
impl UnwindSafe for TextFont
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