Apply Transform scaling to text primitives

This commit is contained in:
Héctor Ramón Jiménez 2023-10-24 02:51:02 +02:00
parent 9b8614a4e2
commit aa41d7656e
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 17 additions and 2 deletions

View file

@ -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)
}
}