check if text style already exist
@@ -509,9 +509,11 @@ class ProxyGraphic:
style = self.textstyles[font]
else:
style = font
- if self._doc:
- self._doc.styles.new(font, dxfattribs={'font': font,
- 'bigfont': bigfont})
+ if self._doc and not self._doc.styles.has_entry(style):
+ self._doc.styles.new(font, dxfattribs={
+ 'font': font,
+ 'bigfont': bigfont
+ })
self.textstyles[font] = style
return style
