Struct ab_glyph::PxScale [−][src]
Expand description
Pixel scale.
This is the pixel-height of text.
Usually one uses x == y, but one may use a different ratio to stretch a
font horizontally or vertically.
Example
use ab_glyph::PxScale;
let uniform_scale_24px = PxScale::from(24.0);Fields
x: f32Horizontal scale in pixels.
y: f32Vertical scale in pixels.
By definition, this is the pixel-height of a font.
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for PxScale
impl UnwindSafe for PxScale
Blanket Implementations
Mutably borrows from an owned value. Read more
