Bug 115591 - Rotate text in form when rotate the form
Summary: Rotate text in form when rotate the form
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
6.0.1.1 release
Hardware: x86-64 (AMD64) Linux (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Draw-UX
  Show dependency treegraph
 
Reported: 2018-02-09 17:21 UTC by Hildo
Modified: 2022-06-13 13:36 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Macros to rotate text in custom shape (4.77 KB, text/plain)
2022-06-12 19:48 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hildo 2018-02-09 17:21:38 UTC
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
Comment 1 Regina Henschel 2018-02-10 15:25:58 UTC
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.
Comment 2 Regina Henschel 2022-06-12 19:35:36 UTC
The technic for rotation of the text exists, but there is no UI, see bug 144942.
Comment 3 Regina Henschel 2022-06-12 19:48:12 UTC
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.
Comment 4 Regina Henschel 2022-06-13 13:36:43 UTC
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.