Apache OpenOffice (AOO) Bugzilla – Issue 30490
Fixed line spacing is limited to 0.25cm (remove limitation imposed by the GUI)
Last modified: 2013-08-07 14:43:11 UTC
Fixed line spacing is limmited to 0,25cm. On small font sizes this leaves to much space between lines.
please add more info for this problems. and change it to correct component instead of test.
If I understand correctly, the reporter is pointing out that, in Writer, "fixed" line spacing (in Format, Paragraph, Indents & Spacing) is restricted to a minimum of 0.25cm. For font sizes of e.g. 3pt, this results in larger-than-optimum spacing between lines. The same is true in OOo m56. As a workround, it is possible to specify a smaller line spacing using the "at least" option in Format, Paragraph, but the current behaviour is non-ideal. If possible, "Fixed" line spacing should be able to take on values as low as 0.01cm. Also changing issue parameters.
.
reassigned to BH.
I would like to requalify in view of some additional complementary information (but I don't know how to do it directly on the issue page). This issue is of much importance for us as we use OpenOffice for music edition which requires multiple fonts, complicated formating and page models. So far, experience with OpenOffice convinced us that we made the right choice. However, we are still blocked on this problem. Here's a quote of our project leader playing with this issue: " The Writer enginer perfectly handles fixed line spacing down to 0.001 cm (0 cm is refused, the paragraph is refused or doesn't appear on screen). Still 0.001 cm because it is an offset which we can manage on our printouts, if we could overule the 0.1 inch limit. Here are the test conditions: - create a style (null_interline) - apply it to two paragraphs - save document - edit the .odt file as a .zip - look for the "null_interline" style and update the interline limit to 0.005 inch (lower than that block paragraph display) - reopen document and we have right interline This test shows that downgrading the fixed line spacing limit to minimum value is a low-cost correction. Please see the attached pdf file for example of such a test: series of 1, 2, 3 and 4 are different paragraphs. Between 1 and 2, the limit is 0.1 in as in OOo 2. Betwee, 2 and 3, 4 the limit is 0.005 in set directly into document. I confirm that OO2 engine handles perfectly the 0,001cm line space : I have used it on several pages without any problem. Here is another proof : I recorded a macro which sets the line spacing to the minimum allowed (0,25cm). Here is the code generated : sub test_interligne2 rem ---------------------------------------------------------------------- rem define variables dim document as object dim dispatcher as object rem ---------------------------------------------------------------------- rem get access to the document document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") rem ---------------------------------------------------------------------- dim args1(1) as new com.sun.star.beans.PropertyValue args1(0).Name = "LineSpacing.Mode" args1(0).Value = 3 args1(1).Name = "LineSpacing.Height" args1(1).Value = 250 dispatcher.executeDispatch(document, ".uno:LineSpacing", "", 0, args1()) end sub Now I change the value from 250 to 1, and runs the macro, it works perfectly. And in the content.xml code I find for this paragraph : <style:paragraph-properties fo:line-height="0.002cm"/> 0.002cm appears to be the minimum value really allowed. (or 0.0008", which is equal). The conclusion is that the limit of 0.25cm is purely arbitrary. A programmer has decided one day that the user is not allowed to set a lower value. Why ?
Created attachment 31036 [details] Fixed paragraph interline set to 0.001 inch
There is no obvious reason why you can define a smaller spacing with the other options (proportional, minimum) but not using fixed... (While for music scores, I'd suggest using a dedicated system like lilypond or similar http://www.lilypond.org/web/ )
*** Issue 67200 has been marked as a duplicate of this issue. ***
I'll attach a patch file.
Created attachment 45365 [details] diff file
Target set
move target to 3.2.
Fixed in cws os124 in sw/source/ui/fmtui/tmpldlg.cxx sw/source/ui/chrdlg/pardlg.cxx
Reassigned for verification
Verified in CWS os124.
Verified in DEV300_m40 .deb version - Closing - Sophie