Precise text height dxf input
Issue:
I want to import text from a CAD program via dxf into Inkscape and the text height in both programs should be precisely the same.
Procedure:
In the CAD program the upper case letter L is written and the text height is adjusted so that the text height is 43.687 mm, which is the L's height in Inkscape for the font size 180 pt = 240 px (font: Liberations Sans which is compatible to Arial). Then the attached CADTextHeight.dxf dxf file was created. With the current dxf_input.py importer you get the following result: The L's text height is far to small. The problem is that there is no exact text height definition in dxf files. I presume it is different for different CAD programs. Therefore I suggest the following improvement for Inkscape's dxf importer. A new 'Manual text scale factor' is introduced: This text scale factor is calculated with the CAD text height as shown in the picture below. For my CAD program the factor is 1.41... If this value is used instead of 1.0 as in the current dxf importer you get the perfect height: This is a general procedure suitable for every CAD program.
Question:
What do you think about this procedure? If it's an acceptable solution I will launch a MR.