Created attachment 134228 [details] File to reproduce problem. It renders differently on Windows and Linux. I found out that on Windows (tested on Windows XP and Windows 7) text with charHeight 10.89 renders as 10.8 At the same time on Linux (tested on Ubuntu 14.04 and Centos 7) it renders as 10.9 As a result included file fit in one line on Windows and in 2 on Linux. Libreoffice 5.3.4.2 on each PC. For books (about 200 pages in LibreOffice on Windows) we have 220 pages in LibreOffice on Linux. Fonts are equal on each platform (Times New Roman). Scale width 95%
Created attachment 134233 [details] Comparison LibreOffice 5.3.3 on Linux and LibreOffice 5.3.3 on Windows 7
@Khaled, any comment on this?
Does it happen with other fonts, like Liberation Serif?
Oh, you are comparing Windows and Linux not different version of Windows. Looks like a duplicate of bug 105992.
Initially it was found on 5.2.x versions.
(In reply to Khaled Hosny from comment #3) > Does it happen with other fonts, like Liberation Serif? I suppose no. Writer does not let to set Height to 10.89 for Liberation Serif (Writer rounds it).
(In reply to Georgy from comment #5) > Initially it was found on 5.2.x versions. No idea then. I think the use of fractional font size might the culprit, but I don’t know how exactly.
I have reproduced the same behavior in openoffice 3.4.1 (compared Win 7 and Centos 7). Looks like it is an old bug.
My wild guess is that we are rounding the font size somehow when loading fonts, and this rounding happens different between different platforms.
Created attachment 134287 [details] Test for Arial font The same problem appears while using Arial font.
Could somebody test it on Mac?
Writer behavior on MacOS is the same as on Linux (2 lines).
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
The bug is still affects Libreoffice (6.5)
I suppose it happens because win vcl on uses win api to get line width.
Dear Georgy, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Document view still different in Windows and Linux Version: 7.2.0.0.alpha0+ / LibreOffice Community Build ID: 43f4769ae537310a6fe6a1edfbc6687cc26fd996 CPU threads: 8; OS: Linux 3.10; UI render: default; VCL: gtk3 Locale: en-GB (en_GB.utf8); UI: en-US TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-03-20_00:16:48 Calc: threaded Version 7.2.0.0.alpha0+ (x64) LibreOffice Community Build ID 07996bcca53939af02921a3d4681c6c7d62a0e40 CPU threads 7; OS Windows 6.1 Service Pack 1 Build 7601; UI render SkiaRaster; VCL win Locale ru-RU (ru_RU); UI ru-RU Calc threaded
Created attachment 171383 [details] The same bug reproduced with integer font size File to reproduce the same bug with integer font size.
Created attachment 171384 [details] Comparison Windows Linux with integer font size Version: 7.2.0.0.alpha0+ / LibreOffice Community Build ID: 8ae3ae4bf75fdd0aaa132c956d9da029baa3adc6 CPU threads: 8; OS: Linux 3.10; UI render: default; VCL: gtk3 Locale: en-GB (en_GB.utf8); UI: en-US TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-04-23_17:13:02 Calc: threaded Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community Build ID: b38fd085608a44cf3a2d181e2720c758356647d7 CPU threads: 7; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win Locale: ru-RU (ru_RU); UI: ru-RU Calc: threaded
In previous examples was used character scaling 95%. My guess is that character scaling calculations give different results on different platforms.
This commit introduced different char width on Linux and Windows. Because of that roundoff error on Windows will be different from Linux. https://github.com/LibreOffice/core/commit/a5750d92b2136d60d698b41ef5760f2efac0ffce
Dear Georgy Litvinov, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug