pub struct Loader { /* private fields */ }
Implementations§
Source§impl Loader
impl Loader
pub fn new(settings: Settings) -> Self
pub fn rasterizer(&self) -> &Rc<RefCell<Rasterizer>>
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_load_font_family(&mut self, id: FontFamilyId) -> &Rc<FontFamily>
pub fn get_or_load_font(&mut self, id: FontId) -> &Rc<Font>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Loader
impl !RefUnwindSafe for Loader
impl !Send for Loader
impl !Sync for Loader
impl Unpin for Loader
impl !UnwindSafe for Loader
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