Entities
entities/ lettering
#include "dxfio/entities/lettering.hpp"In DxfIO::Entities
struct Lettering
The AcDbText subclass a TEXT, an ATTRIB and an ATTDEF share: what the text says, where, and in which style.
| Field | Type and default | Meaning |
|---|---|---|
Thickness | double | How far the entity is extruded along its normal. Group 39. |
Position | Vector | The first alignment point, where text aligned left starts, in the entity's own coordinate system. Groups 10, 20, 30. |
Height | double | The height of the letters, in drawing units. Group 40. |
Value | std::string | What the text says, with its control codes such as %%d. Group 1. |
Rotation | double | The rotation, in degrees. Group 50. |
Width | double{1} | The relative width of the letters, 1 for the style's own. Group 41. |
Oblique | double | The slant of the letters, in degrees from the vertical. Group 51. |
Style | Symbol{"Standard"} | The name of the text style. Group 7. |
Generation | int | How the text is mirrored: 2 backward, 4 upside down. Group 71. |
Horizontal | int | The horizontal justification: 0 left, 1 center, 2 right, 3 aligned, 4 middle, 5 fit. Group 72. |
Alignment | std::optional<Vector> | The second alignment point, which justified text keeps to; none for text aligned left. Groups 11, 21, 31. |
Extrusion | Vector{Up} | The normal of the plane the entity is drawn in. Groups 210, 220, 230. |