LibreOffice uses xrdb (Xft.dpi: 192) for DPI settings, not the GDK variable. Having the GDK variable set works well for everything else, but breaks LibreOffice. Gentoo should work around it by unsetting it in the launcher. This should be added to the top of /usr/lib64/libreoffice/program/soffice: unset GDK_SCALE export GDK_SCALE
(In reply to Jason A. Donenfeld from comment #0) > unset GDK_SCALE 'unset' already deletes exported variables. So the line below is not needed. > export GDK_SCALE
Actually I've found the solution that works for HiDPI with libreoffice[gtk3] is adding this to the startup script: export GDK_DPI_SCALE="$GDK_SCALE" unset GDK_SCALE This works around the existing libreoffice bugs.
Is this still required?
(In reply to Andreas K. Hüttel from comment #3) > Is this still required?
I don't think so. Seems fine 4 years later.