pub struct Fonts { /* private fields */ }Implementations§
Source§impl Fonts
impl Fonts
pub fn new(cx: &mut Cx, settings: Settings) -> Self
pub fn rasterizer(&self) -> &Rc<RefCell<Rasterizer>>
pub fn grayscale_texture(&self) -> &Texture
pub fn color_texture(&self) -> &Texture
pub fn is_font_family_known(&self, id: FontFamilyId) -> bool
pub fn is_font_known(&self, id: FontId) -> bool
pub fn define_font_family( &mut self, id: FontFamilyId, definition: FontFamilyDefinition, )
pub fn define_font(&mut self, id: FontId, definition: FontDefinition)
pub fn get_or_layout(&mut self, params: impl LayoutParams) -> Rc<LaidoutText>
pub fn prepare_textures(&mut self, cx: &mut Cx) -> bool
pub fn prepare_atlases_if_needed(&mut self, cx: &mut Cx)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Fonts
impl !RefUnwindSafe for Fonts
impl !Send for Fonts
impl !Sync for Fonts
impl Unpin for Fonts
impl !UnwindSafe for Fonts
Blanket Implementations§
Source§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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