pub struct WgpuTextSystem { /* private fields */ }Implementations§
Source§impl WgpuTextSystem
impl WgpuTextSystem
pub fn from_fonts(fonts: &[&[u8]]) -> Self
Sourcepub fn from_font_set(software_fonts: SoftwareTextFontSet) -> Self
pub fn from_font_set(software_fonts: SoftwareTextFontSet) -> Self
Adopt a font set an app already built — the path app-supplied families take, where faces were parsed once at startup rather than from static byte slices here.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WgpuTextSystem
impl !UnwindSafe for WgpuTextSystem
impl Freeze for WgpuTextSystem
impl Send for WgpuTextSystem
impl Sync for WgpuTextSystem
impl Unpin for WgpuTextSystem
impl UnsafeUnpin for WgpuTextSystem
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