#836935 libreoffice-gtk3: Setting GDK_SCALE and GDK_DPI_SCALE to values other than 1 screws up rendering

Package:
libreoffice-gtk3
Source:
libreoffice
Description:
office productivity suite -- GTK+ 3 integration
Submitter:
Christian Gogolin
Date:
2025-08-08 14:20:03 UTC
Severity:
normal
Tags:
#836935#5
Date:
2016-09-07 11:11:56 UTC
From:
To:
Dear Maintainer,

libreoffice with the libreoffice-gtk3 package installed fails to render
correctly when the environment variables GDK_SCALE and/or GDK_DPI_SCALE are set
to values not equal to 1.

This can be verified by starting libreoffice as follows:

$ GDK_SCALE=2; GDK_DPI_SCALE=1; libreoffice

Background: These variables are used be people with high density screens (such
as those in modern laptops) to obtain a reasonable widget and font size.

A common setup is to export

export GDK_SCALE=2
export GDK_DPI_SCALE=0.5

in .xinitrx or similar.
Thereby GTK_SCALE=2 scales all widgets in gnome applications by a a factor of 2
and GDK_DPI_SCALE=0.5 reduces the font size back to the original size, as
modern fonts are already rendered in a way that takes into account the dpi of
the screen.

Somewhat surprisingly for me, libreoffice, as opposed to other Gnome apps,
already looks reasonable on a high dpi screen with GDK_SCALE=1 and
GDK_DPI_SCALE=1. So a workaround for the reported problem is to always start
libreoffice with:

$ GDK_SCALE=1; GDK_DPI_SCALE=1; libreoffice

#836935#10
Date:
2017-09-30 19:45:43 UTC
From:
To:
Hello,

I tested with your command and LO 5.4.1-1 and the result is not bad.
Could you look into my screenshot Christian?

Regards,

#836935#15
Date:
2017-09-30 19:48:42 UTC
From:
To:
The screenshot is attached.
#836935#22
Date:
2024-04-17 11:53:46 UTC
From:
To:
Dear submitter,

as the package libreoffice has just been removed from the Debian archive
experimental we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1069123

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

#836935#31
Date:
2025-08-07 22:13:21 UTC
From:
To:
Humanitarian Grant of 1.5M for you. Reply for claims