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
Sourcepub fn default_font() -> Self
pub fn default_font() -> Self
Resources that use the embedded default font when the embedded-default-font feature is on,
and draw no text otherwise.
Sourcepub fn from_fonts(fonts: &[&'static [u8]]) -> Self
pub fn from_fonts(fonts: &[&'static [u8]]) -> Self
Resources that draw text in fonts. With none that parses, they use
the embedded default font when the embedded-default-font feature is
on, and draw no text otherwise.
Sourcepub fn fonts(&self) -> &SoftwareTextFontSet
pub fn fonts(&self) -> &SoftwareTextFontSet
The font set that text is measured and drawn with.
Sourcepub fn with_installed_faces(&self) -> Option<Self>
pub fn with_installed_faces(&self) -> Option<Self>
These resources with the faces installed since they were made, or
None while no face was installed since.
Trait Implementations§
Source§impl Clone for SoftwareTextResources
impl Clone for SoftwareTextResources
Auto 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