Style¶
Defines a text style (DXF Reference), can be used by entities: Text
, Attrib
and
Attdef
.
Subclass of |
|
DXF type |
|
Factory function |
|
See also
Tutorial for Text and DXF internals for DIMSTYLE Table.
-
class
ezdxf.entities.
Textstyle
¶ -
dxf.
handle
¶ DXF handle (feature for experts).
-
dxf.
owner
¶ Handle to owner (
StyleTable
).
-
dxf.
name
¶ Style name (str)
-
dxf.
flags
¶ Style flags (feature for experts).
1
If set, this entry describes a shape
4
Vertical text
16
If set, table entry is externally dependent on an xref
32
If both this bit and bit 16 are set, the externally dependent xref has been successfully resolved
64
If set, the table entry was referenced by at least one entity in the drawing the last time the drawing was edited. (This flag is only for the benefit of AutoCAD)commands. It can be ignored by most programs that read DXF files and need not be set by programs that write DXF files)
-
dxf.
height
¶ Fixed height in drawing units,
0
for not fixed (float).
-
dxf.
width
¶ Width factor (float), default is
1
.
-
dxf.
oblique
¶ Oblique angle in degrees,
0
is vertical (float).
-
dxf.
generation_flags
¶ Text generations flags (int)
2
text is backward (mirrored in X)
4
text is upside down (mirrored in Y)
-
dxf.
last_height
¶ Last height used in drawing units (float).
-
dxf.
font
¶ Primary font file name (str).
-
dxf.
bigfont
¶ Big font name, blank if none (str)
-