Struct comfy_wgpu::epaint::text::FontsImpl
pub struct FontsImpl { /* private fields */ }Expand description
The collection of fonts used by epaint.
Required in order to paint text.
Implementations§
§impl FontsImpl
impl FontsImpl
pub fn new(
pixels_per_point: f32,
max_texture_side: usize,
definitions: FontDefinitions
) -> FontsImpl
pub fn new( pixels_per_point: f32, max_texture_side: usize, definitions: FontDefinitions ) -> FontsImpl
pub fn pixels_per_point(&self) -> f32
pub fn definitions(&self) -> &FontDefinitions
pub fn font(&mut self, font_id: &FontId) -> &mut Font
pub fn font(&mut self, font_id: &FontId) -> &mut Font
Get the right font implementation from size and FontFamily.
pub fn has_glyphs(&mut self, font_id: &FontId, s: &str) -> bool
pub fn has_glyphs(&mut self, font_id: &FontId, s: &str) -> bool
Can we display all the glyphs in this text?
Auto Trait Implementations§
impl !RefUnwindSafe for FontsImpl
impl Send for FontsImpl
impl Sync for FontsImpl
impl Unpin for FontsImpl
impl !UnwindSafe 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