You are not logged in.

#1 2019-03-10 14:10:18

theringoffire
Member
Registered: 2014-01-25
Posts: 19

LibreOffice HiDPI no proper font scaling in plasma 5 [SOLVED]

Hi everyone,
I recently switched my display to a nice 32" EIZO 4K screen. Following the HiDPI guide(s) I got almost everything correctly scaled and nicely displayed on the desktop.
The only issue still remaining is the font scaling of LibreOffice (fresh). All native dialog fonts and the actual writing font get zoomed by the display scaling factor of plasma (1.4 in my case) without proper font scaling. The Menu and other QT dialogs are scaled correctly, also the Icons (SVG theme).
GIMP and Firefox scale very well.

My HiDPI settings:
Forced Fonts DPI 134 (my actual display DPI)
Display scaling 1.4 (Xorg)
No GTK or QT scaling variables set

I could also live with LibreOffice scaled to 1 but could not find a way to just scale a specific application. Is there one?
Other Ideas are also very welcome.

System:
KDE Plasma Version: 5.15.2
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1
Kernel Version: 5.0.0-arch1-1-ARCH
OS Type: 64-bit
Processors: 16 × AMD Ryzen 7 1700X Eight-Core Processor
Memory: 15.7 GiB of RAM
Graphics: AMD Vega 64 on AMDGPU driver

Last edited by theringoffire (2019-04-30 19:21:34)

Offline

#2 2019-03-18 12:52:00

jack_slayton
Member
Registered: 2009-04-12
Posts: 29

Re: LibreOffice HiDPI no proper font scaling in plasma 5 [SOLVED]

I have similar problems with Libreoffice and e.g. Filelight. See the screenshot for a taste of how the font looks and the software versions in use. Unfortunately I can't tell when this behaviour started appearing.

https://i.imgur.com/QurlMY9.png
On the left you can see filelight. The font inside the pie chart is fuzzy.
On the right is libreoffice. The font inside the cells and the info dialog is fuzzy.
Menus of both programs look fine as you can see.

Settings:
Forcing fonts to 144 DPI (Tried 96 and 168 also. Nothing helps)
Display scaling: 1.5

My setup:
Intel integrated graphics
27 inch 4k screen

Mod Edit - Replaced oversized image with link.
CoC - Pasting pictures and code

Last edited by Slithery (2019-03-18 12:58:14)

Offline

#3 2019-03-21 14:15:46

jack_slayton
Member
Registered: 2009-04-12
Posts: 29

Re: LibreOffice HiDPI no proper font scaling in plasma 5 [SOLVED]

It seems the problem is known: https://bbs.archlinux.org/viewtopic.php … 3#p1832013

buovjaga wrote:

There are still lots of rough edges, including a very ugly general look with most text elements in the UI, if you happen to use fractional display scaling (a bug in Qt 5.11 that needs a workaround, not implemented yet).

Offline

#4 2019-04-01 11:19:58

QuimaxW
Member
From: Papua New Guinea
Registered: 2006-12-03
Posts: 228
Website

Re: LibreOffice HiDPI no proper font scaling in plasma 5 [SOLVED]

I've been fighting this for days...glad to see it's not just me! I just want to follow this to see how it plays out. For now, I set KDE's display scaling back to 1, even though everything else but libreoffice was fine with the 1.3 I had it set to.

Now I'm curious (and probably a separate topic) where Libreoffice gets it's font display settings. An internal engine or something else on a system that is tweak-able?


"He is no fool who gives what he cannot keep to gain that which he cannot lose." -Jim Elliot

Offline

#5 2019-04-15 22:09:05

LordChaos73
Member
From: .nl
Registered: 2008-11-11
Posts: 183

Re: LibreOffice HiDPI no proper font scaling in plasma 5 [SOLVED]

jack_slayton wrote:

That bug report is about the backspace key no longer working, right? Because I still have this display issue of UI text elements (blurry font rendering) in the gui using Libreoffice Fresh 6.2.2.2.

Operating System: Arch Linux
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2
Kernel Version: 5.0.7-arch1-1-ARCH
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 15,4 GiB of RAM

Last edited by LordChaos73 (2019-04-16 07:36:29)

Offline

#6 2019-04-16 11:59:03

jack_slayton
Member
Registered: 2009-04-12
Posts: 29

Re: LibreOffice HiDPI no proper font scaling in plasma 5 [SOLVED]

True, the linked issue is about the backspace issue. However he also talks about how the font scaling issue seems to be a problem in Qt not Libreoffice.

Offline

#7 2019-04-30 08:51:46

oniboni
Member
Registered: 2019-04-30
Posts: 1

Re: LibreOffice HiDPI no proper font scaling in plasma 5 [SOLVED]

jack_slayton wrote:

True, the linked issue is about the backspace issue. However he also talks about how the font scaling issue seems to be a problem in Qt not Libreoffice.

Indeed, LibreOffice seems to use some deprecated Qt environment variables. Adding the following 'script' to ${HOME}/.config/plasma-workspace/env/ solved the problem for me:

#!/bin/bash

export QT_SCREEN_SCALE_FACTORS=
export QT_SCALE_FACTOR=
export QT_AUTO_SCREEN_SCALE_FACTOR=

After that, don't forget to:

$ chmod -w+x <your_script_name>.sh

And log off and on again (or reboot? Im not sure here.)

Actually I think, just unsetting the QT_AUTO_SCREEN_SCALE_FACTOR environment variable should be enough, you can test it with

$ QT_AUTO_SCREEN_SCALE_FACTOR= libreoffice

Hope I could help.

Offline

#8 2019-04-30 19:20:12

theringoffire
Member
Registered: 2014-01-25
Posts: 19

Re: LibreOffice HiDPI no proper font scaling in plasma 5 [SOLVED]

Thanks a lot oniboni, this worked!

Offline

#9 2019-04-30 23:12:12

MattMcHackit
Member
Registered: 2019-04-30
Posts: 1

Re: LibreOffice HiDPI no proper font scaling in plasma 5 [SOLVED]

oniboni it's

QT_SCREEN_SCALE_FACTORS= 

that fixed the font scaling for me -- thank you! Icons are still highly pixelated and using the environmental variable globally messes up other applications, so I've applied it specifically to my Libreoffice launchers.

Offline

Board footer

Powered by FluxBB