Package: libreoffice-gtk3
Version: 1:5.2.0-2
Severity: normal

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




-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libreoffice-gtk3 depends on:
ii  dpkg                      1.18.10
ii  libatk1.0-0               2.20.0-1
ii  libc6                     2.23-5
ii  libcairo-gobject2         1.14.6-1+b1
ii  libcairo2                 1.14.6-1+b1
ii  libdbus-1-3               1.10.10-1
ii  libdbus-glib-1-2          0.106-1
ii  libgcc1                   1:6.1.1-11
ii  libgdk-pixbuf2.0-0        2.34.0-1
ii  libgl1-mesa-glx [libgl1]  11.2.2-1
ii  libglew1.13               1.13.0-2
ii  libglib2.0-0              2.49.6-1
ii  libglu1-mesa [libglu1]    9.0.0-2.1
ii  libgtk-3-0                3.21.5-3
ii  libice6                   2:1.0.9-1+b1
ii  libpango-1.0-0            1.40.2-1
ii  libpangocairo-1.0-0       1.40.2-1
ii  libreoffice-core          1:5.2.0-2
ii  libsm6                    2:1.2.2-1+b1
ii  libstdc++6                6.1.1-11
ii  libx11-6                  2:1.6.3-1
ii  libxext6                  2:1.3.3-1
ii  uno-libs3                 5.2.0-2
ii  ure                       5.2.0-2

Versions of packages libreoffice-gtk3 recommends:
ii  libreoffice-style-tango  1:5.2.0-2

Versions of packages libreoffice-gtk3 suggests:
ii  libreofficekit-data  1:5.2.0-2

-- no debconf information

Reply via email to