Apache OpenOffice (AOO) Bugzilla – Issue 75405
Different line height in Linux than in Windows
Last modified: 2017-05-20 11:28:04 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.
Created attachment 43709 [details] test case
sorry, the link in description should be http://sourceforge.net/project/showfiles.php?group_id=34153&package_id=56408
Same as issue 60945. *** This issue has been marked as a duplicate of 60945 ***
Closing duplicate.
Reopening issue. Though issue 60945 causes similar end results the problem is different.
reassigning
Accepting.
set target 3.x
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.
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?
for us the changing of the flag fixed the problem, so it is no problem, then it is the default. thank you Anke
see also Bug 90663 - different view of document between Windows and Linux
Reset assigne to the default "issues@openoffice.apache.org".