pub struct TextFonts { /* private fields */ }Expand description
The typefaces an app’s text lays out and draws with: the app’s own, then the faces installed while it runs.
Implementations§
Source§impl TextFonts
impl TextFonts
Sourcepub fn from_fonts_or_default(fonts: &[&'static [u8]]) -> Self
pub fn from_fonts_or_default(fonts: &[&'static [u8]]) -> Self
Parses each of fonts and keeps those that parse; with none that
parses, the embedded default font when the build has it.
Sourcepub fn resolver(&self) -> FontFamilyResolver
pub fn resolver(&self) -> FontFamilyResolver
The resolver text lays out with over these typefaces.
Sourcepub fn with_installed_faces(&self) -> Option<Self>
pub fn with_installed_faces(&self) -> Option<Self>
These fonts with the faces installed through
install_font_file after
their own, or None while no face was installed since they were made.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TextFonts
impl !UnwindSafe for TextFonts
impl Forget for TextFonts
impl Freeze for TextFonts
impl Move for TextFonts
impl Send for TextFonts
impl Sync for TextFonts
impl Unpin for TextFonts
impl UnsafeUnpin for TextFonts
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