Description: Sometimes we use a form on LibreOffice Draw and rotate it or just do some inclination. If the form have a text inside, the text is also affected and distorted. It will be better if the text propriety not change (or be separated) when rotate the form. Steps to Reproduce: 1a. In the Draw add a "S-shaped arrow"; 2a. Double click and add some text; 3a. Rotate the form (arrow); 1b. Try if some "common" arrow; 2b. Incline/roatate it; 3b. The text will appear italic. Actual Results: The text inside the form are rotate / inclination with the form. Expected Results: The text inside the form still align with the page, horizontally. Reproducible: Always User Profile Reset: Yes Additional Info: User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0
Changing the current behavior is no option, so a new property would be needed. Currently there exists no attribute to save such information in the file. There are two possible solutions: A Use a flag, only for LibreOffice model, and adapt the attribute draw:text-rotate-angle every time when the shape is edit. B Introduce a new attribute to the file format and propose this attribute to the ODF TC. MS Office has such attribute "upright" for text in shapes. Text rotation is related to bug 104290, bug 76456, and bug 106197, where the same question rises for import from MS Office. Any solution for this enhancement request has to consider import/export to MS Office too.
The technic for rotation of the text exists, but there is no UI, see bug 144942.
Created attachment 180692 [details] Macros to rotate text in custom shape The attached file contains the macros "MakeTextUpright" and "ManuallySetTextRotation" to determine the direction of the text. The other macros are helpers. It does not work for shapes in Writer, which have a text box, because a text box cannot rotate. And the macros do not have an "undo". So not really ready for production. But the macros show, what is already implemented in LibreOffice. Import the file into an empty Basic module. Select the shape, press Alt+F11 and choose the desired macro. As always with such macros, there is not warranty; work on a copy of your document.
You may use the macro only if you are sure, that the attribute "TextPreRotateAngle" does not exist. Otherwise you get a file format error, see bug 149551.