DesktopEditors icon indicating copy to clipboard operation
DesktopEditors copied to clipboard

CJK characters unwanted fallback to Unicode Consortium's Last Resort font

Open jisa0224 opened this issue 1 year ago • 2 comments

This issue is unique.

  • [X] I have used the search tool and did not find an issue describing my bug.

Operating System

Linux (DEB package)

Version information

7.5.1.23 (deb)

Expected Behavior

Type some CJK character (or any character not supported by "Arial") Select font "Arial" for those characters Those characters should fallback to fonts supporting those characters

Screenshot_20231230_220905

Actual Behavior

Those characters now fallback to font "Last Resort"

Screenshot_20231230_220731

Reproduction Steps

  1. Clean install Arch Linux
  2. Install AUR (en) - onlyoffice-bin, which is a DEB package

The behavior is as expected (those characters will fallback to "Noto Sans CJK TC")

  1. Download unicode-org/last-resort-font: Last Resort Font and put into ~/.local/share/fonts

The behavior is incorrect (those characters now fallback to "Last Resort")

  1. Remove the font file

The behavior is as expected (those characters will fallback to "Noto Sans CJK TC")

Additional information

The OnlyOffice UI has no problem. The editor and the style selection panel have this problem.

It seems that the UI use system Fontconfig, but the editor doesn't use Fontconfig. The editor seems to use OnlyOffice's own Font Engine (becuase I disable Last Resort in Fontconfig doesn't solve the problem. The font selection still shows all fonts I disabled by Fontconfig).

Since "Last Resort" covers fall Unicode range, maybe it has a high priority than "Noto Sans CJK TC" (I didn't find any related code).

Can I force OnlyOffice to not use its own Font Engine but use system's Fontconfig to handle font fallbacking?

Or, if I must use the Font Engine (it seems like this is what OnlyOffice's intention), can I disable a particular font (e.g. "Last Resort") in OnlyOffice without deleteing it in my system?

jisa0224 avatar Dec 30 '23 14:12 jisa0224

Hello, @jisa0224! Unfortunately, Desktop Editors ONLYOFFICE doesn't yet have that option. I created ticket as issue 66368 in our issues tracker to this proposal. Thank you for contacting us.

ElenaMaaya avatar Feb 05 '24 11:02 ElenaMaaya

Hello, @jisa0224! Unfortunately, Desktop Editors ONLYOFFICE doesn't yet have that option. I created ticket as issue 66368 in our issues tracker to this proposal. Thank you for contacting us.

Thanks! Have a great day!

jisa0224 avatar Feb 05 '24 15:02 jisa0224