Bug 127336 - Line wrapping disagreement between LibreOffice and OpenOffice
Summary: Line wrapping disagreement between LibreOffice and OpenOffice
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.2.5.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:odt
Depends on:
Blocks:
 
Reported: 2019-09-04 14:02 UTC by Anthony Weston
Modified: 2019-09-05 04:16 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
LibreOffice screenshot (72.91 KB, image/png)
2019-09-04 14:06 UTC, Anthony Weston
Details
OpenOffice screenshot (80.77 KB, image/png)
2019-09-04 14:07 UTC, Anthony Weston
Details
Test ODT file (9.44 KB, application/vnd.oasis.opendocument.text)
2019-09-04 14:08 UTC, Anthony Weston
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Weston 2019-09-04 14:02:28 UTC
Description:
Under certain conditions, the word wrapping in a paragraph at the right margin differs from how OpenOffice handles the word wrapping. My use case requires LibreOffice to match what OpenOffice is currently doing with the word wrapping, but I cannot find a way to achieve this consistently with the examples in the Steps to Reproduce.

Steps to Reproduce:
Example 1
1. Open LibreOffice
2. Set the font to Courier New size 10.5
3. Set the left and right margins to 1 inch
4. Enter the following text (no trailing space after "Texts"): Text Text Text Text Text Text Text Text Text Text Text Texts 
5. Save the document and open a copy in OpenOffice to compare side by side.
 

Example 2
1. Open the same document in LibreOffice.
2. In a new paragraph with the same style, enter the following text (note the trailing space after "Texts"): Text Text Text Text Text Text Text Text Text Text Text Texts 
3. Save the document and open a copy in OpenOffice to compare side by side.

 
Example 3: 
1. Open the same document in LibreOffice.
2. In a new paragraph with the same style, enter the following text (note the trailing space): AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 
3. Save the document and open a copy in OpenOffice to compare side by side.


Example 4: 
1. Open the same document in LibreOffice.
2. In a new paragraph with the same style, enter the following text (no trailing space): AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
3. Save the document and open a copy in OpenOffice to compare side by side.



Actual Results:
Example 1:
 - LibreOffice: The word "Texts" does not wrap to the next line.
 - OpenOffice: The word "Texts" does not wrap to the next line.
 - The line wrapping results agree between the two applications in this example.

Example 2:
 - LibreOffice: The word "Texts" does not wrap to the next line.
 - OpenOffice: The word "Texts" wraps to the next line.

Example 3:
 - LibreOffice: The first line of the paragraph contains 60 A's
 - OpenOffice: The first line of the paragraph contains 59 A's, and the 60th A wraps to the next line.

Example 4:
 - LibreOffice: The first line of the paragraph contains 60 A's
 - OpenOffice: The first line of the paragraph contains 59 A's, and the 60th A wraps to the next line.

Expected Results:
The line wrapping results agree between the two applications, or there is some way to specify the wrapping behavior at the right margin.



Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Version: 6.2.5.2 (x64)
Build ID: 1ec314fa52f458adc18c4f025c545a4e8b22c159
CPU threads: 12; OS: Windows 10.0; UI render: GL; VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded
Comment 1 Anthony Weston 2019-09-04 14:06:47 UTC
Created attachment 153866 [details]
LibreOffice screenshot
Comment 2 Anthony Weston 2019-09-04 14:07:24 UTC
Created attachment 153867 [details]
OpenOffice screenshot
Comment 3 Anthony Weston 2019-09-04 14:08:05 UTC
Created attachment 153868 [details]
Test ODT file
Comment 4 V Stuart Foote 2019-09-05 04:16:13 UTC
Apache OepnOffice through 4.1.6 release has built up a lot of technical debt in its VCL rendering, one area that is especially true is in it font handling. Since the 5.3 releases LibreOffice has refactored text layout to use Harfbuzz and DirectWrite based rendering with OpenGL, with additional rework of GDI rendering and corrected handling of font metrics.

Even in current LibreOffice--there are differences between OpenGL rendering and default GDI only rendering (with HA or just CPU) and we have open issues to improve both rendering modes.

Also, Apache OpenOffice does not support OpenGL rendering in any sense, so comparing a 6.2.5 release of LibreOFfice in OpenGL mode, to a 4.1.6 release of AOO is never going to produce matching layouts. You would need to test against a 5.2.6 release, or earlier, of LibreOffice with default rendering to even attempt a comparison. And if an issue were identified it would likely be a WONTFIX, those builds are EOL.

The issue as presented with STR are invalid.

IMHO => INVALID