Issue 30490 - Fixed line spacing is limited to 0.25cm (remove limitation imposed by the GUI)
Summary: Fixed line spacing is limited to 0.25cm (remove limitation imposed by the GUI)
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: OOo 1.1.2
Hardware: PC All
: P4 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords: oooqa, rfe_eval_ok
: 67200 (view as issue list)
Depends on:
Blocks:
 
Reported: 2004-06-19 23:46 UTC by 2crazy2btrye
Modified: 2013-08-07 14:43 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Fixed paragraph interline set to 0.001 inch (12.09 KB, application/pdf)
2005-10-31 07:47 UTC, fmichel2
no flags Details
diff file (875 bytes, text/plain)
2007-05-24 09:51 UTC, frank.meies
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description 2crazy2btrye 2004-06-19 23:46:57 UTC
Fixed line spacing is limmited to 0,25cm. On small font sizes this leaves to 
much space between lines.
Comment 1 utomo99 2004-06-25 09:10:11 UTC
please add more info for this problems. and change it to correct component 
instead of test. 
Comment 2 sjb90 2004-10-18 14:02:02 UTC
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.
Comment 3 sjb90 2004-10-18 14:02:32 UTC
.
Comment 4 michael.ruess 2004-10-18 15:31:51 UTC
reassigned to BH.
Comment 5 fmichel2 2005-10-31 07:45:52 UTC
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 ? 
Comment 6 fmichel2 2005-10-31 07:47:06 UTC
Created attachment 31036 [details]
Fixed paragraph interline set to 0.001 inch
Comment 7 lohmaier 2005-11-05 17:55:50 UTC
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/ )
Comment 8 michael.ruess 2006-07-12 12:47:53 UTC
*** Issue 67200 has been marked as a duplicate of this issue. ***
Comment 9 frank.meies 2007-05-24 09:49:44 UTC
I'll attach a patch file.
Comment 10 frank.meies 2007-05-24 09:51:03 UTC
Created attachment 45365 [details]
diff file
Comment 11 Oliver Specht 2008-12-09 14:09:26 UTC
Target set
Comment 12 Martin Hollmichel 2008-12-10 11:17:17 UTC
move target to 3.2.
Comment 13 Oliver Specht 2008-12-10 13:37:48 UTC
Fixed in cws os124 in
sw/source/ui/fmtui/tmpldlg.cxx
sw/source/ui/chrdlg/pardlg.cxx
Comment 14 Oliver Specht 2009-01-14 13:03:10 UTC
Reassigned for verification
Comment 15 michael.ruess 2009-01-15 16:44:34 UTC
Verified in CWS os124.
Comment 16 sgautier.ooo 2009-02-01 13:58:26 UTC
Verified in DEV300_m40 .deb version - Closing - Sophie