Created attachment 128667 [details] sample Steps to reproduce: 1. Open attach document with SAL_USE_COMMON_LAYOUT=1 2. Open attach document with SAL_NO_COMMON_LAYOUT=1 3. Compare the results Reproduced in Version: 5.3.0.0.alpha1+ Build ID: 60da087d7e182b58b63d4123c9bd96c82376d450 CPU Threads: 4; OS Version: Linux 4.2; UI Render: default; VCL: gtk2; Layout Engine: new; Locale: ca-ES (ca_ES.UTF-8); Calc: group
Created attachment 128668 [details] comparison
Looks like you are getting shorter text, which in turn causes different line breaks and finally different number of lines and the text box eventually moves up. The shorter text might be related to bug 103765, but I don’t have the font to confirm.
Created attachment 128701 [details] sample document with new (L) and old (R) text layout and OpenGL rendering The sample document rendered on Windows 10 Pro 64-bit (1607) en-US with Version: 5.3.0.0.alpha1+ Build ID: ba8a41bac3765f7b3562d357aeb13f752ea14ba4 CPU Threads: 8; OS Version: Windows 6.2; UI Render: GL; Layout Engine: new; TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2016-11-11_22:52:38 Locale: en-US (en_US); Calc: CL Using OpenGL rendering for both. On the left is the new HarfBuzz based layout, on the right is the old DirectWrite only layout. At this scale (fit page) the new HarfBuzz layout does not honor existing hyphen breaks, and text does extend beyond right margin of text frames. But as I zoom in and out, the text is recomposed and hyphen breaks occur. This seems a little unstable.
Is this still an issue?
Yes, still see it with Version: 5.3.0.0.alpha1+ Build ID: 84f644eee78106f01486098d446d9163b62927eb CPU Threads: 8; OS Version: Windows 6.2; UI Render: default; Layout Engine: new; TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2016-11-15_23:52:44 Locale: en-US (en_US); Calc: CL and looks like bug 103942 is a duplicate.
And that is with and without OpenGL with the new layout engine.
I can no longer reproduce it in Version: 5.3.0.0.alpha1+ Build ID: 9745d29227e471ce40e9992fefd92e10a48696fb CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; VCL: gtk3; Layout Engine: new; Locale: ca-ES (ca_ES.UTF-8); Calc: group Closing it as RESOLVED WORKSFORME
Please retest this, I reverted the fix for bug 103765 (as it caused bug 103891), and this might be broken again :(
Seems correct even with application of https://cgit.freedesktop.org/libreoffice/core/commit/?id=d35b5c8db00afb0316b7ae4c43126a5dad194cbb