pub struct ScaleF32 {
x: f32,
y: f32,
ppem: f32,
}Expand description
Scales font units to f32 pixels.
Nothing here rounds, so a measurement carrying a fraction keeps it, which
Scale26Dot6 does not.
Fields§
§x: f32§y: f32§ppem: f32Implementations§
Trait Implementations§
impl Copy for ScaleF32
Source§impl Scale for ScaleF32
impl Scale for ScaleF32
Source§fn scale_glyph_extents(&self, e: GlyphExtents<F48Dot16>) -> GlyphExtents<f32>
fn scale_glyph_extents(&self, e: GlyphExtents<F48Dot16>) -> GlyphExtents<f32>
Scales where a glyph’s ink sits. Read more
Source§fn scale_rect(&self, b: BoundingBox<F48Dot16>) -> BoundingBox<f32>
fn scale_rect(&self, b: BoundingBox<F48Dot16>) -> BoundingBox<f32>
Scales a region given by its corners. Read more
Auto Trait Implementations§
impl Freeze for ScaleF32
impl RefUnwindSafe for ScaleF32
impl Send for ScaleF32
impl Sync for ScaleF32
impl Unpin for ScaleF32
impl UnsafeUnpin for ScaleF32
impl UnwindSafe for ScaleF32
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