pub struct Scale {
pub flags: ScaleFlags,
pub x_scale: i32,
pub y_scale: i32,
pub x_delta: i32,
pub y_delta: i32,
pub size: f32,
pub units_per_em: i32,
}Expand description
Captures scaling parameters which may be modified during metrics computation.
Fields§
§flags: ScaleFlagsFlags that determine hinting functionality.
x_scale: i32Font unit to 26.6 scale in the X direction.
y_scale: i32Font unit to 26.6 scale in the Y direction.
x_delta: i32In 1/64 device pixels.
y_delta: i32In 1/64 device pixels.
size: f32Font size in pixels per em.
units_per_em: i32From the source font.
Implementations§
Trait Implementations§
impl Copy for Scale
Auto Trait Implementations§
impl Freeze for Scale
impl RefUnwindSafe for Scale
impl Send for Scale
impl Sync for Scale
impl Unpin for Scale
impl UnsafeUnpin for Scale
impl UnwindSafe for Scale
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