Apache OpenOffice (AOO) Bugzilla – Issue 124233
Different text rendering (word/character width) depending on zoom factor
Last modified: 2014-05-15 22:43:03 UTC
Created attachment 82585 [details] Sample impress presentation With AOO 4.1 text rendering has been improved using native OS X rendering I assume. Although this improvement is very valuable the current behaviour makes impress nearly useless: (1) The width of words/characters is changing depending on the zoom factor. This is illustrated on the attached screenshots 1 (zoom factor 92%) and 2 (zoom factor 94%), see red box. (2) The changing word/character with causes cursor placement issues. Depending on the zoom factor it's no longer possible to select the desired character. This is illustrated on the attached screenshot 3, see red box. (3) The rendering of slide previews is affected too (see screenshot 4). The sample file used to take the screenshots is attached. The behaviour occurs with revision 1567914 from trunk, but the behaviour described still exists on earlier revisions too.
Created attachment 82586 [details] Screenshot 1: Text rendering at 92% zoom
Created attachment 82587 [details] Screenshot 2: Text rendering at 94% zoom
Created attachment 82588 [details] Screenshot 3: Bad cursor placement
Created attachment 82589 [details] Screenshot 4: Slide sorter
Confirmed. What's interesting is that the new subsystem goes to great lengths to preserve sub-pixel layout accuracy. It is being investigated where this extra accuracy gets chopped. The rounding in line 325 of drawinglayer/source/primitive2d/textlayoutdevice.cxx is a prime suspect.
"hdu" committed SVN revision 1569388 into trunk: #i124233# fix CoreText justification of text with trailing spaces
Herbert, thank you very much for providing your fix. Text rendering looks very good now. I found an additional issue. I'm not sure wheater the root cause is the same: (1) Select the title frame on the first slide of the sample presentation (2) Place the cursor at the beginning of the second line immediately previous to the word "Title" (3) Delete the space causing the line wrap with backspace, "TitleTitle" appears in the second line now (4) Insert the space again using the space bar At the end of the first line a very wide space appears now. Within the area of the wide space the selection of characters is no more possible correctly. The problem disappears after deselecting the title frame. The behaviour described is illustrated on the newly attached screenshot 5, see red box. It seems to be independent from the zoom factor.
Created attachment 82624 [details] Screenshot 5: Extra white space
Good catch! It was caused by a rounding error. Will be fixed really soon...
"hdu" committed SVN revision 1570188 into trunk: #i124233# prevent the accumulation of rounding errors in CTLayout::FillDXArry()
The bug still exists with revision 1570362 from trunk.
(In reply to Thorsten Wagner from comment #11) > The bug still exists with revision 1570362 from trunk. Please check with the latest nightly build at http://people.apache.org/~hdu/
(In reply to hdu@apache.org from comment #12) > (In reply to Thorsten Wagner from comment #11) > > The bug still exists with revision 1570362 from trunk. > > Please check with the latest nightly build at http://people.apache.org/~hdu/ On your web site is only a link marked with "AOO for 64 bit Mac OS X" which is broken. I'm unable to download something.
> Please check with the latest nightly build at http://people.apache.org/~hdu/ There was a typo in the dev-builds link that is fixed now. That test build has also been updated to todays trunk revision.
Herbert, unfortunately the bug is still present in revision 1571366 from trunk as well as within the version downloaded from your web site.
It seems the problem appears with spaces at the end of a line. After inserting a space at the end of a line, the rest of the text within the line gets shrinked and cursor positioning is lost. In AOO 4.0.1 the problem is either not present or not very distinct.
"hdu" committed SVN revision 1572587 into trunk: #i124233# fix CoreText measurements/justification of text with trailing spaces
grant showstopper flag not usable otherwise
tested the fix and it works now
My retest looks good too. Herbert, thank you very much for providing the fix. I'll set the status of the ticket to "resolved" now. Unfortunately I discovered another text rendering bug, but I'll file a new ticket "Text disappears on slide preview" for this issue.
Thanks for finding, retesting and verifying the problems!
"hdu" committed SVN revision 1572868 into branches/AOO410: #i124233# fix CoreText measurements/justification of text with trailing spaces