pub struct FontData {
pub id: String,
pub bytes: Arc<[u8]>,
pub index: u32,
pub source: FontSource,
}Expand description
Resolved font bytes ready for shaping or outlining. Cheap to clone (Arc).
Fields§
§id: StringStable identifier, e.g. "noto-sans-400-normal".
bytes: Arc<[u8]>Raw font file bytes.
index: u32Face index within a font collection (0 for single-face fonts).
source: FontSourceProvenance of this face (bundled / project / local-system).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FontData
impl RefUnwindSafe for FontData
impl Send for FontData
impl Sync for FontData
impl Unpin for FontData
impl UnsafeUnpin for FontData
impl UnwindSafe for FontData
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