DesktopEditors
DesktopEditors copied to clipboard
CJK characters unwanted fallback to Unicode Consortium's Last Resort font
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
Actual Behavior
Those characters now fallback to font "Last Resort"
Reproduction Steps
- Clean install Arch Linux
- Install AUR (en) - onlyoffice-bin, which is a DEB package
The behavior is as expected (those characters will fallback to "Noto Sans CJK TC")
- 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")
- 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?
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.
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!