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
Created attachment 153866 [details] LibreOffice screenshot
Created attachment 153867 [details] OpenOffice screenshot
Created attachment 153868 [details] Test ODT file
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