pub struct FontHandle(/* private fields */);Expand description
Opaque wrapper around a loaded font resource (blob + collection index).
frust-text constructs FontHandles from peniko::FontData;
frust-render (layer 4) unwraps them when building glyph draw calls.
peniko::FontData is the shared Linebender vocabulary vello_common re-exports — it
does not count as a vello type for the purposes of this crate’s “no vello in
the public API” rule. Note: peniko 0.6.1 names
this type FontData, not Font; the shape
(blob + collection index) is unchanged.
Implementations§
Trait Implementations§
Source§impl Clone for FontHandle
impl Clone for FontHandle
Source§impl Debug for FontHandle
impl Debug for FontHandle
Auto Trait Implementations§
impl !RefUnwindSafe for FontHandle
impl !UnwindSafe for FontHandle
impl Freeze for FontHandle
impl Send for FontHandle
impl Sync for FontHandle
impl Unpin for FontHandle
impl UnsafeUnpin for FontHandle
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