Issue 75405 - Different line height in Linux than in Windows
Summary: Different line height in Linux than in Windows
Status: ACCEPTED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: OOo 2.0.4
Hardware: All Unix, all
: P3 Trivial with 2 votes (vote)
Target Milestone: OOo 3.x
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-14 18:58 UTC by rpolach
Modified: 2017-05-20 11:28 UTC (History)
4 users (show)

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


Attachments
test case (7.51 KB, text/plain)
2007-03-14 19:04 UTC, rpolach
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description rpolach 2007-03-14 18:58:12 UTC
If used Arial or Times New Roman fonts,
line height/spacing is different between
a) OpenOffice 2.0.4 in Windows (XP SP2)
and
b) OpenOffice 2.0.4 in Ubuntu Linux 6.10 (with installed "msttcorefonts" package
containing Arial and other fonts)

Steps to reproduce:
1) create new OOo Writer document
2) Write 60 times one-line paragraphs with "Arial 12" style
3) In Windows you can see page break between 52. and 53. line,
   while in Ubuntu Linux you can see page break between 54. and 55. line
4) you can save the document and open it in another operating system,
   the page break changes possition as described in 3)

Attaching document created by these steps...

Note 1: I can see this wrong behaviour for Arial and Times New Roman fonts,
but not e.g. for DejaVu fonts.

Note 2: Windows/OOo2.0.4 behaviour is the same as Windows/OOo2.1 and
Windows/MSOffice...

Note 3: I believe that fonts under Ubuntu Linux are downloaded from
http://sourceforge.net/project/showfiles.php?group_id=34153&package_id=26315
with checksums so they are probably not corrupted... I have also tried this
reproduce at another boxes (Windows and Ubuntu) with same results.
Comment 1 rpolach 2007-03-14 19:04:36 UTC
Created attachment 43709 [details]
test case
Comment 2 rpolach 2007-03-14 19:06:02 UTC
sorry, the link in description should be
http://sourceforge.net/project/showfiles.php?group_id=34153&package_id=56408
Comment 3 michael.ruess 2007-03-15 09:10:22 UTC
Same as issue 60945.

*** This issue has been marked as a duplicate of 60945 ***
Comment 4 michael.ruess 2007-03-15 09:13:29 UTC
Closing duplicate.
Comment 5 hdu@apache.org 2007-11-06 08:06:39 UTC
Reopening issue. Though issue 60945 causes similar end results the problem is different.
Comment 6 hdu@apache.org 2007-11-06 08:07:18 UTC
reassigning
Comment 7 hdu@apache.org 2007-11-06 08:08:35 UTC
Accepting.
Comment 8 Martin Hollmichel 2008-01-28 02:31:39 UTC
set target 3.x
Comment 9 pjentsch 2011-01-10 13:13:29 UTC
We found the the undocumented flag UnxForceZeroExtLeading fixes the problem for us. 
This is a flag set in "settings.xml" in the OOo Document. It defaults to "true"
and needs to be set to "false" explicitly to achieve equal rendering behaviour
on windows and unix. 

Pseudo XPath:

MyDocument/settings.xml//config:config-item[@config:name='UnxForceZeroExtLeading']=
false

Issue no longer a problem for us.
Comment 10 r0polach 2013-06-20 20:11:53 UTC
Well for fixing this bug there should be probably done at least:
1. setting this flag to false for newly created text documents
2. setting this flag to false during openning a .odt file
3. setting this flag to false during import of msword .doc file

But I do not know why such flag exists at all? 
And why it is true by default?
(And why it is undocummented?)
Is there any misbehaviour when one set it to false?
Comment 11 ankemueller 2013-07-04 11:05:06 UTC
for us the changing of the flag fixed the problem, so it is no problem, then it is the default.
thank you 

Anke
Comment 12 ankemueller 2013-07-04 11:07:31 UTC
see also Bug 90663 - different view of document between Windows and Linux
Comment 13 Marcus 2017-05-20 11:28:04 UTC
Reset assigne to the default "issues@openoffice.apache.org".