Linux Flatpak Fonts look very bad

I am on Fedora Kinoite and use LibreOffice from flathub in its latest version. In writer and calc the fonts looks really bad. I have microsoft fonts installed and also microsoft office (via RDP) and OnlyOffice (flatpak) installed as well. The bad font quality only exists in LibreOffice. I also tried running it in X11 but that didn’t help.

Attached is a screenshot (left onlyoffice, right libreoffice).

I already tried playing around with all the settings (rendering, hinting, hardware acceleration,…).

Is there any fix to this?

Never seen such a behavior. Might be there is something incomplete with the installation.
Go to Help → About LibreOffice → Copy version information with the Button. Post it here.

Cannot confirm the issue with

Version: 25.8.1.1 (AARCH64) / LibreOffice Community
Build ID: 54047653041915e595ad4e45cccea684809c77b5
CPU threads: 4; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Flatpak
Calc: threaded

versus:

Version: 25.2.3.2 (AARCH64) / LibreOffice Community
Build ID: 520(Build:2)
CPU threads: 4; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Debian package version: 4:25.2.3-2+deb13u2
Calc: threaded
Version: 25.8.2.2 (X86_64) / LibreOffice Community
Build ID: d401f2107ccab8f924a8e2df40f573aab7605b6f
CPU threads: 24; OS: Linux 6.16; UI render: default; VCL: gtk3
Locale: de-AT (en_US.UTF-8); UI: en-US
Flatpak
Calc: threaded

@karolus @RobertG

When I see “Calibri” in the dropdown for fonts it seems Calc doesn’t find this font anywhere. Have a look at the fonts when opening the dropdown.
Might be something like this:
https://bugs.documentfoundation.org/show_bug.cgi?id=168812

Yes the Calibri written in italics hints to LibreOffice not recognizing the font.
.
I’d check first, if LO shows other “foreign” fonts like Arial properly.
Possible cause:

? Is the container allowed to see fonts? Would not be the first time, when something is missing here.
.
For older fonts/ .ttf one can check, if this are type1-fonts, wich are no longer supported. (But I would be surprised, if OnlyOffice would still show them, therefore not my first guess.)

@RobertG @Wanderer This is actually a screenshot I found on google which reflect how my fonts look like. On my version the calibri font is detected (i have MS fonts installed). The calibri font is not “italic” style. It also happens with any other font. Here is a screenshot from my desktop

Please show a screenshot of the opened dropdown, which show the font “calibri” in your font list. Should look like this:


Something like this?

@RobertG I think my fonts are all installed and seen by libreoffice correctly?

Interestingly the “i” in Calibri looks fine in the drop down but not in the top where it shows the currelty used font. You see the spacing?

Did you try the solution of one of the links above:

without xdg-desktop-portal-gtk package, the gtk-apps installed via Flathub (e.g., LibreOffice) look terrible

@RobertG I have all of these installed:

pm -qa | grep  xdg-desktop-portal    
xdg-desktop-portal-1.20.3-1.fc42.x86_64
xdg-desktop-portal-gtk-1.15.3-1.fc42.x86_64
xdg-desktop-portal-kde-6.4.5-1.fc42.x86_64

Btw, I am on Fedora Kinoite 42 if that matters.

@RobertG @Wanderer any furhter ideas? :frowning:

No further idea here. I haven’t installed anything as flatpak.
.
I would try to install LO parallel as user installed version. Works her under OpenSUSE 15.6 8rpm-packages) without such a problem.
https://wiki.documentfoundation.org/Installing_in_parallel

1 Like

@RobertG I just layered libreoffice (=system installation) and it has exactly the same issue. All settings and everything are the same but the font output is just as bad.

So I am thinking that this has nothing to do with flatpak.

So the only differences between our systems might be:
gtk3 (I’m using kde5)
Wayland (I’m using X11)

Seems so. The first pair of screenshots suggested LibreOffice not recognizing a font and replacing it.
.
Your own later screenshot shows rendering a font with different metrics. And I have no idea where this may be caused.

I am running Fedora Kinoite 42 so its KDE + Wayland.
I already tried forcing it as X11 (and currently it is forced as wayland) through flatpak permission.
No change there :frowning:

Could you try to install an older version parallel? Sometimes I’m using this one:
https://downloadarchive.documentfoundation.org/libreoffice/old/7.4.7.2/