pub struct TextMetrics {
pub normal: [f32; 95],
pub medium: [f32; 95],
pub normal_baseline_offset: f32,
pub medium_baseline_offset: f32,
}Expand description
Backend-supplied normalized ASCII advances. Fixed storage; no per-frame font queries.
Fields§
§normal: [f32; 95]§medium: [f32; 95]§normal_baseline_offset: f32Baseline displacement from the center of a text line, in em units.
medium_baseline_offset: f32Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for TextMetrics
impl Freeze for TextMetrics
impl Move for TextMetrics
impl RefUnwindSafe for TextMetrics
impl Send for TextMetrics
impl Sync for TextMetrics
impl Unpin for TextMetrics
impl UnsafeUnpin for TextMetrics
impl UnwindSafe for TextMetrics
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