pub struct FontMeasure { /* private fields */ }Expand description
The pixel tiers: the same fonts and sizes the rasterizer draws with.
Implementations§
Trait Implementations§
Source§impl Measure for FontMeasure
impl Measure for FontMeasure
fn advances(&self, text: &str, font: Font) -> Rc<Vec<f32>>
Source§fn shows_emoji(&self) -> bool
fn shows_emoji(&self) -> bool
Whether emoji come out as themselves here. A terminal draws its own; painted text
needs a font for them on the machine that paints it, which a server may not have.
fn width(&self, text: &str, font: Font) -> f32
Auto Trait Implementations§
impl !Freeze for FontMeasure
impl !RefUnwindSafe for FontMeasure
impl !Send for FontMeasure
impl !Sync for FontMeasure
impl !UnwindSafe for FontMeasure
impl Forget for FontMeasure
impl Move for FontMeasure
impl Unpin for FontMeasure
impl UnsafeUnpin for FontMeasure
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