Struct rusttype::PixelsXY
[−]
[src]
pub struct PixelsXY(pub f32, pub f32);
A nonuniform font scaling. PixelsXY(x, y)
produces a scaling that makes the height of the rendered font
y
pixels high, with a horizontal scale factor on top of that of x/y
. For example, if you want to render
a font with a height of 20 pixels, but have it horizontally stretched by a factor of two, use
PixelsXY(40.0, 20.0)
.
Trait Implementations
impl Clone for PixelsXY
[src]
fn clone(&self) -> PixelsXY
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more