C++
struct AcDbMTextFragment { AcGePoint3d location; AcGeVector3d normal; AcGeVector3d direction; AcString msText; const ACHAR * text = nullptr; AcString msFont; const ACHAR * font = nullptr; AcString msBigFont; const ACHAR * bigfont = nullptr; AcGePoint2d extents; double capsHeight = 0.0; double widthFactor = 0.0; double obliqueAngle = 0.0; double trackingFactor = 0.0; AcCmEntityColor color; unsigned stackTop : 1; unsigned stackBottom : 1; unsigned underlined : 1; unsigned overlined : 1; unsigned strikethrough : 1; AcGePoint3d underPoints[2] = {}; AcGePoint3d overPoints[2] = {}; AcGePoint3d strikePoints[2] = {}; AcString msFontName; const ACHAR * fontname = nullptr; bool bold = false; bool italic = false; };
File
dbmtext.h
Members
| Members | Description |
|---|---|
| location | Text insertion point |
| normal | Normal vector |
| direction | Text flow direction vector |
| text | Text string |
| font | Text font |
| bigfont | Text bigfont |
| extents | Text extents. X-coord is the extents box width. Y-coord is the extents box height. |
| capsHeight | Text height |
| widthFactor | Text width factor |
| obliqueAngle | Text oblique angle |
| trackingFactor | Text tracking factor |
| color | Text color |
| stackTop | Set if the text is top part of stacked text |
| stackBottom | Set if the text is bottom part of stacked text |
| underlined | Set if underlining is on |
| overlined | Set if overlining is on |
| strikethrough | Start and end points of strike-through vector . |
| underPoints | Start and end points of underline vector |
| overPoints | Start and end points of overline vector |
| strikePoints | Set if strike-through is on. |
| fontname | TrueType font name (null if not TrueType text) |
| bold | True if text is true type and is bold |
| italic | True if text is TrueType and is italic |
Description
This structure is used to describe a fragment of text as extracted by the explodeFragments() function. Each fragment consists of a piece of text with a unique combination of style information (font, size, color, and so on).
See Also
AcDbMText