Apache OpenOffice (AOO) Bugzilla – Issue 124935
Line length miscalculated when character spacing is expanded
Last modified: 2017-05-20 10:35:44 UTC
Created attachment 83424 [details] File created to reproduce the described problem The attached document ("Untitled 1.odt") displays correctly in OO 3.4.1 (see screenshot 1), but in 4.1.0 the second line extends beyond the right margin of the page (screenshot 2). The critical setting is that the character spacing is "expanded." when the spacing is "normal," the problem does not occur. Note that the problem occurs regardless of the paragraph justification: left, right, center, full. Also, the problem occurs when the document is printed. This was working as late as 4.0.1. We no longer have access to that version and are forced to work with 3.4.1 until this can be resolved.
Created attachment 83425 [details] Screenshot of repro doc in 3.4.1 (no problem)
Created attachment 83426 [details] Screenshot of repro doc in 4.1.0 (problem occurs)
"hdu" committed SVN revision 1596218 into trunk: #i124935# fix expanded/condensed text breaking in the CoreText engine
Fixed with the commit above. It extends the CTLayout::GetTextBreak() method to handle the obsolete semantic of per code-unit extra-widths by successively approximating the number of involved code-units. The concept of an extra-width per code-unit was obsolete at least since apps supported unicode with its different normalization forms, diacritical marks, surrogate-pairs, non-printing characters such as ZWJ/ZWNJ/RLM, etc.
(In reply to office from comment #0) > This was working as late as 4.0.1. We no longer have access to that version Apache OpenOffice releases are archived and available at https://archive.apache.org/dist/openoffice/
grant showstopper flag for AOO 4.1.1
"hdu" committed SVN revision 1602369 into branches/AOO410: #i124935# fix expanded/condensed text breaking in the CoreText engine
The fix has been merged for the AOO 4.1.1 target.
OK. Resolved. Under AOO 4.1.1 Build 9770 Ubuntu 14.04. Marked complete line of block text and applied Format -> Character -> Position -> Spacing -> Expanded 2pt. Line ends correctly at right margin and words get carried on to next line correctly.
(In reply to David Paenson from comment #9) > OK. Resolved. > > Under AOO 4.1.1 Build 9770 Ubuntu 14.04. This one is also a regression on MacOSX, it should be verified on that platform.
it's MacOS of course but it's always useful to cross check on the other platforms as well
(In reply to jsc from comment #11) > it's MacOS of course but it's always useful to cross check on the other > platforms as well While this applies in general, how could a change in vcl/aqua/source/gdi/ctlayout.cxx impact other platforms? IMO we shouldn't waste QA contributor's time when we are in the know.
It's verified fixed in build AOO411m2(Build:9771) - Rev. 1608452 2014-07-07 15:29:02 (Mon, 07 Jul 2014)