Style

class Style

Defines a text style, can be used by entities: Text, Attrib and Attdef

DXF Attributes for Style

Style.dxf.handle

DXF handle (feature for experts)

Style.dxf.owner

requires DXF R13 or later

Style.dxf.name

Style name (str)

Style.dxf.flags

Style flags (feature for experts)

Style.dxf.height

Fixed height in drawing units, 0 for not fixed (float)

Style.dxf.width

Width factor (float), default is 1

Style.dxf.oblique

Oblique angle in degrees, 0 is vertical (float)

Style.dxf.text_generation_flags

Text generations flags (int)

  • 2 = text is backward (mirrored in X)
  • 4 = text is upside down (mirrored in Y)
Style.dxf.last_height

Last height used in drawing units (float)

Style.dxf.font

Primary font file name (str)

Style.dxf.bigfont

Big font name, blank if none (str)