diff --git a/masque/shapes/text.py b/masque/shapes/text.py index e645920..cd8340b 100644 --- a/masque/shapes/text.py +++ b/masque/shapes/text.py @@ -90,11 +90,13 @@ class Text(Shape): return all_polygons - def rotate(self, theta: float): + def rotate(self, theta: float) -> 'Text': self.rotation += theta + return self - def scale_by(self, c: float): + def scale_by(self, c: float) -> 'Text': self.height *= c + return self def normalized_form(self, norm_value: float) -> normalized_shape_tuple: return (type(self), self.string, self.font_path, self.layer), \