fix Designer.draw_text()
@@ -339,7 +339,7 @@ class Frontend:
def draw_complex_mtext(self, mtext: MText, properties: Properties) -> None:
"""Draw the content of a MTEXT entity including inline formatting codes."""
- complex_mtext_renderer(self.ctx, self.out, mtext, properties)
+ complex_mtext_renderer(self.ctx, self._designer, mtext, properties) # type: ignore
def draw_curve_entity(
self, entity: DXFGraphic, properties: Properties
@@ -863,7 +863,7 @@ class Designer:
properties: Properties,
cap_height: float,
) -> None:
- if transform:
+ if self.transformation:
transform *= self.transformation
cap_height *= self.scale
self.backend.draw_text(text, transform, properties, cap_height)
