pub struct SoftwareTextResources { /* private fields */ }Expand description
Renderer-owned text resources: the resolved font used for software rasterization and measurement, if any.
Implementations§
Source§impl SoftwareTextResources
impl SoftwareTextResources
pub fn default_font() -> Self
Sourcepub fn from_app_fonts(fonts: &[&[u8]]) -> Self
pub fn from_app_fonts(fonts: &[&[u8]]) -> Self
Resources backed by the app-provided font stack (all parseable fonts participate in per-style resolution), falling back to the embedded font when none parse.
pub fn fonts(&self) -> &SoftwareTextFontSet
Trait Implementations§
Source§impl Clone for SoftwareTextResources
impl Clone for SoftwareTextResources
Source§fn clone(&self) -> SoftwareTextResources
fn clone(&self) -> SoftwareTextResources
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SoftwareTextResources
impl !UnwindSafe for SoftwareTextResources
impl Freeze for SoftwareTextResources
impl Send for SoftwareTextResources
impl Sync for SoftwareTextResources
impl Unpin for SoftwareTextResources
impl UnsafeUnpin for SoftwareTextResources
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