Created attachment 100367 [details] I made a sample document to demonstrate the problem and am attaching it. It shows how text in a table with an 80% line height is cropped while text outside of a table set to a 60% line height is not cropped and is readable. Problem description: If you have text in a table set to 85% proportional line height or smaller, the text gets cropped (the descenders of letters such as j, q, p, y, g basically get chopped off) and becomes difficult-to-read, even though there is plenty of whitespace for the text. This problem does not affect text that isn't in a table. Steps to reproduce: 1. Create a table. 2. Type some text in a cell. 3. Set the 'Table Contents' style to have 80% proportional line height (Format > Styles and Formatting, right click Table Contents and select 'modify', set Proportional of 80% in Idents & Spacing tab.) 4. Type a bunch of text that includes the lowercase letters g, j, p, q, y, etc. Current behavior: Letter descenders get cropped. Expected behavior: Letters overlap on top of one another. This is what happens if you make the line height very short on text that isn't in a table. This is better because it becomes more clear that the line-height needs to be adjusted. When the letters are cropped, it's not clear what the problem is. Operating System: Fedora Version: 4.2.3.3 release
Created attachment 100368 [details] screenshot showing the issue
When testing this in Linux Mint in 3.3.0, 4.1.6, 4.2 and 4.3 beta the document will load correctly as shown in the previous attached screenshot. But scrolling up and down with the mouse wheel, page up & page down, or with the scrollbar quickly and you will notice that different parts of the text arent being redraw. An alt-tab twice will remedy this issue.
Set as enhancement because it probably works as designed. Best regards. JBF
Hi Jean-Baptiste - can you explain with a bit more detail for me how this is an enhancement request? The different behavior between table and document body makes me think it's an outright bug...
Created attachment 100821 [details] cropping in both the table and body text I found the issue in both the table and document body.
the cropped drawing with proportional line-spacing < 100% is regression in LO 3.3.0 from this commit which is obviously incomplete: commit 70597695b23b5c45dfc735a7afd175f034428195 Author: Florian Reuter <freuter@novell.com> AuthorDate: Tue Sep 14 14:32:01 2010 +0200 Commit: Cédric Bosdonnat <cedricbosdo@openoffice.org> CommitDate: Tue Sep 14 14:32:01 2010 +0200 sw-allow-negative-spacing.diff: correctly display linespacing < 100% n#364534 what's even worse is that a multi-line paragraph's rendered inter-line spacing is the square of the percentage.
Michael Stahl committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=4e223fab04279c3583689e69fa1342966e81de36 fdo#79602: sw: fix text formatting of proportional line space < 100% It will be available in 4.4.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Michael Stahl committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=9605763e3dc8c85137787c77c31e8639553a35ed fdo#79602: sw: add new compatibiltiy flag PropLineSpacingShrinksFirstLine It will be available in 4.4.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Created attachment 108696 [details] ODT document with proportional line spacing from OOo 3.4 beta
Created attachment 108697 [details] ODT document with proportional line spacing from Word
Created attachment 108698 [details] DOCX document with proportional line spacing from Word
Created attachment 108699 [details] DOC/WW8 document with proportional line spacing from Word
Sorry for the spamming but I had to fix a bug in the script that was visible with this bug report.
fixed the painting so it actually looks like Word does it (except that Word does clip the text if it gets too small but we don't) also and added a compatibility flag so that old OOo documents look the same as before. commits on libreoffice-4-3 branch: 7ca9c060155b79a037861a972843a70b8a518c4f cff2323e10161d3cbbdba088e8ec74aee3839c62