On 14/03/2012 6:44, Luca wrote: > > Hi! > Hello Luca, > > I'm a student of Computer Science and I've already speak with > Dongxu Li to work on LibreCAD. I have to add a features to > LibreCAD and I've choosed to add mtext, as Dongxu suggested me. > He also said to ask to you to have more information about this > features, since for the next monday I have to present to my > teacher what I will do in the next months, especially what I > will add and how the program will be improved! > Dongxu has already given me lots of information and whatever > you think will help me, please send me! > BR > Luca > - In October 2011, I filled a feature request in the LibreCAD tracker (@Sourceforge). See below: http://sourceforge.net/tracker/?func=detail&aid=3420626&group_id=342582&atid=1433847 - As mentioned in the above feature request; in LibreCAD, all text entities appear the same as what is known as "MTEXT" entity in AutoCAD world. That's it... In LibreCAD, there is no equivalent of what it is known as "TEXT" entities in AutoCAD world. - Remark: As you may already know, "MTEXT" stand for "Multi-line Text", and can be edited the same way as in a standard text editor. - So, from my (old AutoCAD user) point of view, the improvement to do in LibreCAD, is not to add "MTEXT" support, but is to do the following task: - Make LibreCAD support not only "MTEXT" entities, but also support "TEXT" entities. - Supporting both "MTEXT" entities and "TEXT" entities imply that these entities are also supported in the DXF library. I suggest you to consult Rallaz, to have details about that. Claude |
Hi Luca,
I apologize for the confusion created here. I should have verified with the feature request first. Regards, Dongxu On Wed, Mar 14, 2012 at 9:48 AM, ClaudeQC [via LibreCAD] <[hidden email]> wrote:
-- Dongxu Li, Ph.D. www.librecad.org |
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 |
Free forum by Nabble | Edit this page |