Bug 128433 - Applying writing mode tb-rl to a legacy rectangle puts text box outside the shape
Summary: Applying writing mode tb-rl to a legacy rectangle puts text box outside the s...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: CJK Shape-Textbox
  Show dependency treegraph
 
Reported: 2019-10-28 13:30 UTC by Regina Henschel
Modified: 2024-08-03 11:47 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Legacy rectangles to test the behavior (16.33 KB, application/vnd.oasis.opendocument.presentation)
2019-10-28 13:30 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2019-10-28 13:30:08 UTC
Created attachment 155369 [details]
Legacy rectangles to test the behavior

Open attached file. It contains a legacy rectangle with a text box. It several versions of the shape with varying rotation and shear setting.

Apply the writing mode tb-rl to the shape text. Notice, that the position of the text block is wrong. It looks as if the text block is aligned to the left shape edge instead of the right edge. The handling of the CJK characters inside the text block is OK.
Comment 1 V Stuart Foote 2019-10-28 21:50:47 UTC
Confirmed on Windows 10 Ent 64-bit en-US with
Version: 6.3.2.2 (x64)
Build ID: 98b30e735bda24bc04ab42594c85f7fd8be07b9c
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded

And to confirm it is not the 'vert' handling of the CJK--changed the text runs to western by removing the CJK glyphs, changing Western text font in the Character dialog to Arial. Even with no CJK the change to tb-rl shifts text out of the Draw text box.
Comment 2 QA Administrators 2021-10-28 04:15:11 UTC Comment hidden (obsolete)
Comment 3 Regina Henschel 2021-10-28 09:06:30 UTC
The error still exists in Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: e1646284ef5a0367c770fa27299db64eedc30cbb
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL
Comment 4 Regina Henschel 2022-03-07 00:38:36 UTC
The error is related to the setting "Adjust to Contour". If that is disabled, the text has a position inside the rectangle. If it is enabled, the text is outside the rectangle.

This does not only affect the legacy rectangle, but polygon and textbox too. For a textbox you need to use the setting in the style, because "Adjust to Contour" is not available as direct attribute of a textbox.

The error has been introduced between OOo2.4.3 and OOo3.2.1.
Comment 5 Regina Henschel 2024-05-13 22:41:37 UTC
This is fixed together with the fix for bug 84507 by commit https://git.libreoffice.org/core/commit/47664e282da4999b8e471a6a916d7ec80414ac18.
Comment 6 Stéphane Guillou (stragu) 2024-05-14 03:18:03 UTC
Also affected Linux:

Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 7 Regina Henschel 2024-08-03 11:46:03 UTC
tb-rl is CJK (eastAsian), not RTL.