QCAD - 2D CAD System.

Click here for a documentation of the DokuWiki formatting syntax that can be used in reports

Please search for existing tasks (also closed ones) before opening a new task.

Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help > Check for Updates)


FS#696 - Text control characters (e.g. upper /lower sign) explicitely shown in drawing

Attached to Project: QCAD
Opened by Karl Bernhardi (kabnh) - Friday, 28 September 2012, 09:39 GMT+2
Last edited by Andrew (andrew) - Monday, 16 December 2013, 14:46 GMT+2
Task Type Bug Report
Category QCAD (main)
Status Closed
Assigned To Andrew (andrew)
Operating System All
Severity Low
Priority Normal
Reported Version 3.0.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


The control characters, such as bold, italic, superscript/subscript, of a Text are displayed explicitely in the drawing. Thus, one obtains not the required appearence of the characters in the drawing.
This occurs when i use QCAD3 in Windows Vista or in openSuse 12.2 on a 64 bit laptop.
If instead i use QCAD3 in openSuse 12.2 on a 32 bit laptop, then characters are displayed in the required appearance. (However, on this laptop i have the reported difficulty in selecting fonts).
If i change back from the drawing to the text editor, then also the texteditor displays the text together with explicit control characters, and not in the original required form.

This task depends upon

Closed by  Andrew (andrew)
Monday, 16 December 2013, 14:46 GMT+2
Reason for closing:  Won't fix
Additional comments about closing:  Out of scope / format limitation
Comment by Andrew (andrew) - Friday, 28 September 2012, 09:41 GMT+2

Please uncheck the check box 'Simple Text' in the text dialog or using the property editor. Simple texts have only one line and no formatting.

Comment by Karl Bernhardi (kabnh) - Friday, 28 September 2012, 10:35 GMT+2

This drawing shows editing of the text : t0.
The upper line shows the failed editing, and the lower line the required form.
This DXF is a combination of accesses to QCAD3 implementations at various laptops.

Comment by Andrew (andrew) - Friday, 28 September 2012, 10:51 GMT+2


This is easily reproducible on any platform:

- Create text in text dialog: ABCD
- Make CD a subscript
- Change font of CD to an individual font
- The source looks now for example like this: AB\S^\fArial Black|b0|i0|c0|p0;CD;
- Although this syntax looks correct, font changes or other formatting changes inside a subscript or superscript are not supported by the text syntax used in DXF/DWG. The text editor is an HTML text editor which is unaware of this restriction.

Potential fixes:
- post filter entered text to strip out such unsupported syntax; show warning to user (easy to implement, breaks WYSIWYG pattern).
- prevent such changes while editing text (hard to implement, requires fundamental changes to existing HTML editor)

Comment by Karl Bernhardi (kabnh) - Friday, 28 September 2012, 15:30 GMT+2

Yes, i can confirm this.
I i use both main ans subscript characters in either "straight" or "italic" mode, then the characters appear at the drawing as required.
If, however, main characters are straight but the subscripts are italic, then i have switched from "straight" font in an italic font.
Thus, the appearance is not the required one.
From my point of view, it is sufficient to circumvent just this intermixing of subscripts with italic font mode with main characters in straight mode. I dont know if it is possible to make a respective workaround with low effort. If not, then i should obey the rule to use only straight mode or only italic mode for all characters.