Struct rusttype::Pixels [] [src]

pub struct Pixels(pub f32);

A uniform font scaling that makes the height of the rendered font a specific number of pixels. For example, if you want to render a font with a height of 20 pixels, use Pixels(20.0).

Trait Implementations

impl Clone for Pixels
[src]

fn clone(&self) -> Pixels

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

impl Copy for Pixels
[src]