Apply Transform scaling to text primitives
This commit is contained in:
parent
9b8614a4e2
commit
aa41d7656e
3 changed files with 17 additions and 2 deletions
|
|
@ -26,3 +26,11 @@ impl From<Pixels> for f32 {
|
|||
pixels.0
|
||||
}
|
||||
}
|
||||
|
||||
impl std::ops::Mul<f32> for Pixels {
|
||||
type Output = Pixels;
|
||||
|
||||
fn mul(self, rhs: f32) -> Self {
|
||||
Pixels(self.0 * rhs)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue