ONLYOFFICE / DesktopEditors

An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
https://www.onlyoffice.com
Other
2.76k stars 318 forks source link

Differences in margins between (Arch) Linux and Windows #1265

Closed Raj2032 closed 1 year ago

Raj2032 commented 1 year ago

This issue is unique.

Operating System

Linux (DEB package)

Version information

7.3.3.50 (deb)

Expected Behavior

I have noticed that with documents, I have noticed that when it is opened in onlyoffice, the margines are different on both Windows and (Arch) Linux distros. I am not too sure why this is.

on windows this is how it looks:

image

Actual Behavior

On Linux this is how it actually looks:

image

and it should match what it does on Windows.

Reproduction Steps

No response

Additional information

Here is the link to the sample document https://drive.proton.me/urls/CKK33V8S0C#lWDwP1ka4ajA

If you opened it on both windows and (Arch) Linux, you can compare the differences.

I noticed that when I opened the document on both Microsoft Office and on OnlyOffice on Windows the margins are the same, it is on Linux that does things a bit differently. I am not too sure why that is.

Open the document on libreoffice on both operating systems open's exactly the same with no differences.

KirillovIlya commented 1 year ago

Hello, thank you for your message.

This can happen when different font sets are used. Because the line height is depend on the font used. Obviously, for different systems you have different font sets. Despite the fact that a specific font is specified in the application, if it is not present in the system, then we are looking for a substitution. Moreover, a given font may be present on both systems, but be physically different.

As a result, in order for you to have the same result, you need to use the same font sets.

Raj2032 commented 1 year ago

@KirillovIlya

a given font may be present on both systems, but be physically different.

I am not too sure why I don't notice this issue on libreoffice, libreoffice works exactly the same on windows and Linux the entire document renders exactly the same. May I know how come onlyoffice does things differently?

As a result, in order for you to have the same result, you need to use the same font sets.

image

This is the font that windows uses and I have installed the font on Linux by copying it from Windows to Linux and then running:

fc-cache -f
KirillovIlya commented 1 year ago

Can you share the file with this issue?

Raj2032 commented 1 year ago

As provided in the "Additional Information" I have already provided a link to my sample document file which is this:

https://drive.proton.me/urls/CKK33V8S0C#lWDwP1ka4ajA ------- Original Message ------- On Monday, April 17th, 2023 at 10:31 PM, Ilya Kirillov @.***> wrote:

Can you share the file with this issue?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

KirillovIlya commented 1 year ago

Unfortunately, I can't download anything by the link you provided. Can you can attach the file right here please?

Raj2032 commented 1 year ago

@KirillovIlya Strange,

I have attached the file over here then: Sample.docx

KirillovIlya commented 1 year ago

I tested your file on a clean install of Ubuntu. The result was exactly the same on your screen. The problem, as I said, is in the font set. This file needs "symbol" font which is not found in the default font set for any Linux. I installed this font in the system and got the same result as on the Windows.

Raj2032 commented 1 year ago

What exact font did you install @KirillovIlya to get the result as found on Windows?