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
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
|
Details
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. |
Monday, 16 December 2013, 14:46 GMT+2
Reason for closing: Won't fix
Additional comments about closing: Out of scope / format limitation
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.
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.
Thanks.
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)
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.