[snap] Fonts are not anti-aliased on Wayland

Bug #1748644 reported by Ads20000
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Edit: on second thoughts, I think the below seemed to change the situation because it meant I logged into the Ubuntu session instead of the Ubuntu on Xorg session. The bug is simply that fonts look 'thinner' than they should in the LibreOffice snap on Wayland, and it's only the snap that's affected.

---

After using `sudo add-apt-repository ppa:communitheme/ppa` and adding the packages there, and then installing `ppa-purge`, removing the packages, and using `ppa-purge` on the PPA, my fonts in the LibreOffice snap seemed to break. I've given an example of 'a quick brown fox jumps over the lazy dog' and a screenshot of a Writer document and its PDF export in Document Viewer side by side.

```
$ snap info libreoffice
tracking: candidate
installed: 6.0.0.3 (47) 408MB -
$ snap version
snap 2.31
snapd 2.31
series 16
ubuntu 17.10
kernel 4.13.0-32-generic
$ snap info core
tracking: candidate
installed: 16-2.31 (4017) 85MB core
```

Also applies to libreoffice 5.4.4.2 (46, stable) on core 16-2.31 (4017, candidate) and core 16-2.30 (3887, stable).

Revision history for this message
Ads20000 (ads20000) wrote :
Revision history for this message
Ads20000 (ads20000) wrote :
summary: - Fonts seem 'thinner' than they should be
+ [snap] Fonts seem 'thinner' than they should be
Ads20000 (ads20000)
description: updated
Revision history for this message
Olivier Tilloy (osomon) wrote : Re: [snap] Fonts seem 'thinner' than they should be

Can you (re)install the libreoffice deb packages and test whether they are also affected by this font issue, or if it's snap-specific?

Can you share the relevant entries from /var/log/apt/history.log (this can contain sensitive information, so you might want to edit and remove extra entries not related to the community theme PPA installs/purges you did)?

Have you checked that the fonts you used to create the document are still installed and available on the system (i.e. that they were not accidentally uninstalled when purging the PPA)?

Changed in libreoffice (Ubuntu):
status: New → Incomplete
Revision history for this message
Ads20000 (ads20000) wrote :

```
Start-Date: 2018-02-06 12:54:02
Commandline: apt install ubuntu-communitheme-session
Requested-By: adam (1000)
Install: suru-icon-theme:amd64 (18.04~wip1+201712220331+8f664ee~ubuntu17.10.1, automatic), gnome-shell-communitheme:amd64 (18.04~wip1+201801311959+420cb11~ubuntu17.10.1, automatic), communitheme-sounds:amd64 (18.04~wip1+201801311039+fb3c6da~ubuntu17.10.1, automatic), gtk-communitheme:amd64 (18.04~wip1+201802032115+a6ca20f~ubuntu17.10.1, automatic), ubuntu-communitheme-session:amd64 (18.04~wip1+201801311959+420cb11~ubuntu17.10.1)
End-Date: 2018-02-06 12:54:08

Start-Date: 2018-02-06 13:09:40
Commandline: apt remove communitheme-sounds gnome-shell-communitheme gtk-communitheme suru-icon-theme ubuntu-communitheme-session
Requested-By: adam (1000)
Remove: suru-icon-theme:amd64 (18.04~wip1+201712220331+8f664ee~ubuntu17.10.1), gnome-shell-communitheme:amd64 (18.04~wip1+201801311959+420cb11~ubuntu17.10.1), communitheme-sounds:amd64 (18.04~wip1+201801311039+fb3c6da~ubuntu17.10.1), gtk-communitheme:amd64 (18.04~wip1+201802032115+a6ca20f~ubuntu17.10.1), ubuntu-communitheme-session:amd64 (18.04~wip1+201801311959+420cb11~ubuntu17.10.1)
End-Date: 2018-02-06 13:09:43
```

GNOME Fonts indicates that Liberation Serif and Liberation Sans are still installed.

Seems to be working now actually but I wonder if it was a package I installed (with the libreoffice Deb) that fixed it or if either it were randomly resolved or 6.0.1.1 (48) fixed it...gonna restart to check.

Revision history for this message
Ads20000 (ads20000) wrote :

Restarted and it's broken again, hmm.

This is my install and removal of the libreoffice Deb...but that doesn't seem to be what fixed it since installing it the second time didn't help.

https://paste.ubuntu.com/=xWN9xpvjRW/

Revision history for this message
Ads20000 (ads20000) wrote :

Oh, and it's a snap-specific problem because the problem doesn't exist in the Deb.

description: updated
Revision history for this message
Ads20000 (ads20000) wrote : Re: [snap] Fonts seem 'thinner' than they should be on Wayland

I've figured it out - it's because after installing the communitheme and removing it, I logged into a standard Wayland session rather than the standard Xorg one, the bug is actually that the fonts are broken in the snap on a Wayland session

summary: - [snap] Fonts seem 'thinner' than they should be
+ [snap] Fonts seem 'thinner' than they should be on Wayland
tags: added: wayland
description: updated
Changed in libreoffice (Ubuntu):
status: Incomplete → New
Revision history for this message
Ads20000 (ads20000) wrote :

This seems to be a bug in gnome-clocks 3.26.1 (43) as well

Ads20000 (ads20000)
tags: added: wayland-session
removed: wayland
Revision history for this message
Olivier Tilloy (osomon) wrote :

Confirmed. To my untrained eye this doesn't look like thinner fonts (I've compared two screenshots and the same text in the about dialog takes up exactly the same width), but rather like they're not antialiased under wayland.

Changed in libreoffice (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
summary: - [snap] Fonts seem 'thinner' than they should be on Wayland
+ [snap] Fonts are not anti-aliased on Wayland
Revision history for this message
Ads20000 (ads20000) wrote :

Yeah that's fine, I kept thinking 'anti-aliased' but wasn't sure it was the right word! I regret not using it originally xD

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.