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.

FieldType and defaultMeaning
ThicknessdoubleHow far the entity is extruded along its normal. Group 39.
PositionVectorThe first alignment point, where text aligned left starts, in the entity's own coordinate system. Groups 10, 20, 30.
HeightdoubleThe height of the letters, in drawing units. Group 40.
Valuestd::stringWhat the text says, with its control codes such as %%d. Group 1.
RotationdoubleThe rotation, in degrees. Group 50.
Widthdouble{1}The relative width of the letters, 1 for the style's own. Group 41.
ObliquedoubleThe slant of the letters, in degrees from the vertical. Group 51.
StyleSymbol{"Standard"}The name of the text style. Group 7.
GenerationintHow the text is mirrored: 2 backward, 4 upside down. Group 71.
HorizontalintThe horizontal justification: 0 left, 1 center, 2 right, 3 aligned, 4 middle, 5 fit. Group 72.
Alignmentstd::optional<Vector>The second alignment point, which justified text keeps to; none for text aligned left. Groups 11, 21, 31.
ExtrusionVector{Up}The normal of the plane the entity is drawn in. Groups 210, 220, 230.