LibreOffice 打开LO自己的文件,行距不一致

摘要

在处理亚洲字体时,LibreOffice程序本身的行距存在Win版和非Win版会出现差异,这会显著影响LibreOffice兼容性。这个问题涉及Writer、Impress和其他能使用文本框的组件。希望有余力的朋友把这个问题上报给官方。

表现

原文件给出,大家可以尝试。
Line Height Test Case.odt (49.2 KB)

下面是各自平台的截图。我特意都使用了25.8.5.2,意在说明这个问题不是版本差异导致的,而是Win与Linux差异导致的。


对比如下图所示:

可以看见,中文字体都是Win版行距小于Linux版行距,而英文字体行距基本一致。

这会导致什么问题呢?

可以看见,所有的字都在往上飘~ 然后,所有标记都在往下飘~

临时解决方法

  1. 不要连按回车键换行,使用分栏符,分页符
  2. 不要使用浮于文字之上,又跟文字紧密相连的标记,使用自带的删除线,下划线。
  3. 始终在一个平台上进行编辑,始终使用PDF进行交流。
  4. 有余力的同学,请帮我向官方报告一下~

image
你检查过这两个系统是否都安装了该字体吗?如果没有安装,你会看到字体名称以斜体显示。

en:
Have you looked for the font if it is installed in both systems? If not installed, you will see its name in italics.

您好,我忘记交代了:这是LiberOffice的一个特性。
同样的字体,在Linux(Ubuntu)内叫Noto Sans CJK SC,在Windows中叫Noto Sans SC。因为我使用Linux处理文件,又直接在Windows打开了该文件,所以显示了斜体。实际上,系统显示了同一个字体。
en:
Sorry for the missing information: it’s expected due to a feature in LibreOffice.
The same font, Noto Sans CJK Chinese Simplified, is displayed as Noto Sans CJK SC in Linux/Ubuntu while Noto Sans SC in Windows. I used Linux to create the file, and then opened it directly in Windows, causing the confusion. Actually, the system displayed it as expected font Noto Sans SC, even it didn’t find Noto Sans CJK SC.

(One possible guess: The fonts in package (apt) fonts-noto-cjk are not the same with the fonts bundled with Windows LO Installer. wait to be confirmed)

1 Like

Noto字体可以先从下列资源下载文件,然后动手安装: