Re: Text entities improvement in LibreCAD.
Posted by
Rallaz on
Mar 14, 2012; 4:38pm
URL: https://forum.librecad.org/Text-entities-improvement-in-LibreCAD-tp5564751p5565403.html
In AutoCAD world
TEXT entity are "text in one line" like:
"concrete HA-200" or "PVC diameter 200"
MTEXT entity are "paragraph of text" like:
"Note: bases shall be aligned
before tightening the bolts"
MTEXT is the same as RS_Text in LibreCAD
TEXT diferences:
Do not accept RETURN char (ends the input)
"Relative X scale factor" this allows shrink/expand the text
"Oblique angle" this allows convert the text in italic to left or right (-85 to +85 degrees)
Implementation:
Since RS_Text are a RS_EntityContainer (like block or polyline), on create or modify,
require to recalculate the AtomicEntities that is part of each char.
In both dxf libraries the read support of TEXT and MTEXT are present, the change are
in filterDXF and filterDXFRW, when read a TEXT is converted to MTEXT
the write part is not implemented, but it is relatively easy.
Attached a screenshot for compare.
Rallaz