Hi!
To add the read support for TEXT should I modify the libdxfrw package, right? in dxflib there are only the function to rea from a file which are used in libdxfrw package?
I looked to the the references you listed. I saw that in rs_filterdxfrw.cpp at the end of void RS_FilterDXFRW::writeInsert (line #1900) there is the call to the writeMText of the dxfRW class. Should I also implement the writeMText in rs_filterdxfrw.cpp, right? Sorry for my sometimes stupid question but I want to be sure of what I will do to not waste time.
The line number have changed with my last commits and have started the write part for you.
rs_filerdxfrw.cpp line #1602 say:
case RS2::EntityInsert:
writeInsert((RS_Insert*)e);
break;
case RS2::EntityText:
writeMText((RS_Text*)e);
break;
/* case RS2::EntityMText:
writeMText((RS_MText*)e);
break;*/
case RS2::EntityDimLinear:
change to:
case RS2::EntityInsert:
writeInsert((RS_Insert*)e);
break;
case RS2::EntityText: //the e->rtti() type of single line text
writeText((RS_Text*)e); //function to implement call with the "single line class"
break;
case RS2::EntityMText: //the e->rtti()type of multi-line text
writeMText((RS_MText*)e); //existing function call with the "multi-line class"
break;
case RS2::EntityDimLinear:
void writeSpline(RS_Spline* s);
void writeInsert(RS_Insert* i);
void writeText(RS_Text* t); //function to implement call with the "single line class"
void writeMText(RS_MText* t); //existing function call with the "multi-line class"
void writeHatch(RS_Hatch* h);