Bug 142090 - Font antialiasing in libreoffice does not work under wayland
Summary: Font antialiasing in libreoffice does not work under wayland
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.1.2.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Wayland KDE, KF5
  Show dependency treegraph
 
Reported: 2021-05-05 05:19 UTC by Martin Tlustos
Modified: 2021-07-01 06:59 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Main window (44.85 KB, image/png)
2021-06-24 14:34 UTC, Martin Tlustos
Details
Options window (72.87 KB, image/png)
2021-06-24 14:34 UTC, Martin Tlustos
Details
Screenshot (OK) on KDE Neon Devedition git-unstable (100.01 KB, image/png)
2021-06-29 21:58 UTC, Michael Weghorn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Tlustos 2021-05-05 05:19:59 UTC
I installed libreoffice from flatpak in my KDE Neon installation. Under X, it works just fine, but when using plasma-wayland, font antialiasing does not work. this affects both menus and document display.
Comment 1 Michael Weghorn 2021-06-23 10:24:25 UTC
Some questions:

1) Can you please attach a screenshot showing the problem?

2) What is the exact info from "Help" -> "About LibreOffice"?

3) What Qt and GTK-related environment variables are set:
   What is the output of the command 'env | grep -E 'QT|GTK'
Comment 2 Martin Tlustos 2021-06-24 14:34:18 UTC
Created attachment 173174 [details]
Main window
Comment 3 Martin Tlustos 2021-06-24 14:34:51 UTC
Created attachment 173175 [details]
Options window
Comment 4 Martin Tlustos 2021-06-24 14:37:38 UTC
About dialog shows this:

Version: 7.1.4.2 / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: gtk3
Locale: de-AT (de_AT.UTF-8); UI: de-DE
Flatpak
Calc: threaded


env | grep -E 'QT|GTK'gives 

QT_ACCESSIBILITY=1
GTK_RC_FILES=/etc/gtk/gtkrc:/home/martin/.gtkrc:/home/martin/.config/gtkrc
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/martin/.gtkrc-2.0:/home/martin/.config/gtkrc-2.0
QT_EXCLUDE_GENERIC_BEARER=1
PLASMA_USE_QT_SCALING=1
QT_WAYLAND_FORCE_DPI=96
QT_AUTO_SCREEN_SCALE_FACTOR=0
Comment 5 Michael Weghorn 2021-06-25 14:13:53 UTC
Thanks, does font antialisaing work for other GTK applications from Flatpak, (e.g. Gedit)?
Comment 6 Martin Tlustos 2021-06-29 12:29:07 UTC
I checked gedit and a few other programs I have installed (not sure whether they are Gnome though, like audacity, handbrake, calibre etc.). No problems with font aliasing in those.
Comment 7 Michael Weghorn 2021-06-29 21:58:12 UTC
Created attachment 173275 [details]
Screenshot (OK) on KDE Neon Devedition git-unstable

I cannot reproduce this in a Plasma Wayland session in either my KDE Neon Plasma git-unstable VM (with (libqt5core5a:amd64 5.15.2+p20.04+tunstable+git20210626.0052-0, plasma-desktop 4:5.22.2.1+p20.04+tunstable+git20210629.0222-0)) nor in a Debian unstable one with the same LibreOffice version.

Attached my screenshot on KDE Neon.

Version: 7.1.4.2 / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-GB
Flatpak
Calc: threaded

Do you possibly have any specific GTK/font settings?
What is your screen resolution?
Comment 8 Michael Weghorn 2021-06-29 22:09:15 UTC
At a quick glance, some of the information in https://github.com/flatpak/flatpak/issues/2861 might be helpful.

Do you have xdg-desktop-portal-kde and xdg-desktop-portal-gtk installed?
Comment 9 Martin Tlustos 2021-06-30 15:31:47 UTC
xdg-desktop-portal-kde and xdg-desktop-portal-gtk are both installed.

I don't know of any specific gtk or font setting I changed other than changing the default font size to 10, and using breeze-dark as desktop theme (and a corresponding desktop theme for gnome). But reversing those settings to default doesn't help either.

I also installed gnome-settings-daemon as suggested in the thread you posted, but to no avail so far (I'll try again after restarting).
Comment 10 QA Administrators 2021-07-01 04:06:09 UTC Comment hidden (obsolete)
Comment 11 Martin Tlustos 2021-07-01 06:42:34 UTC
ok, after installing gnome-settings-daemon and restarting it works. So it seems that libreoffice needs some info that isn't there until gnome-settings-daemon is started...
Comment 12 Michael Weghorn 2021-07-01 06:59:15 UTC
Great, good to hear it works now. Let's close this bug report accordingly.