pub struct FontsImpl { /* private fields */ }Expand description
The collection of fonts used by epaint.
Required in order to paint text.
Implementations§
Source§impl FontsImpl
impl FontsImpl
Sourcepub fn new(options: TextOptions, definitions: FontDefinitions) -> Self
pub fn new(options: TextOptions, definitions: FontDefinitions) -> Self
pub fn options(&self) -> &TextOptions
Sourcepub fn take_shape_buffer(&mut self) -> UnicodeBuffer
pub fn take_shape_buffer(&mut self) -> UnicodeBuffer
Take the recycled shaping buffer (or create a new one if already taken).
Sourcepub fn return_shape_buffer(&mut self, buffer: UnicodeBuffer)
pub fn return_shape_buffer(&mut self, buffer: UnicodeBuffer)
Return a shaping buffer for reuse.
Sourcepub fn font(&mut self, family: &FontFamily) -> Font<'_>
pub fn font(&mut self, family: &FontFamily) -> Font<'_>
Get the right font implementation from FontFamily.
Auto Trait Implementations§
impl !Freeze for FontsImpl
impl !RefUnwindSafe for FontsImpl
impl !UnwindSafe for FontsImpl
impl Send for FontsImpl
impl Sync for FontsImpl
impl Unpin for FontsImpl
impl UnsafeUnpin for FontsImpl
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