https://bugs.documentfoundation.org/show_bug.cgi?id=174414

            Bug ID: 174414
           Summary: Extremely small font and icons in menus in libreoffice
                    products on a 4K monitor
           Product: LibreOffice
           Version: 26.2.7.3 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: minor
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
After installing LibreOffice and after each update, both the menus and icons in
all products' menus appear extremely small, making normal operation impossible.
I found a solution online that worked for me. Perhaps you could consider
permanently implementing this fix in your product. I suspect I'm not the only
one who has encountered this problem, and not everyone will be able to resolve
it. Additionally, having to run my script after each LibreOffice update is
quite annoying.

Operating System: Fedora Linux 44
KDE Plasma Version: 6.8.2
KDE Frameworks Version: 6.31.0
Qt Version: 6.11.2
Kernel Version: 7.2.15-200.fc44.x86_64 (64-bit)
Graphics Platform: Wayland



Steps to Reproduce:
1.Install or update LibreOffice
2.Start any of Writer, Calc, etc.

Actual Results:
The font and icons are so small that it is on the verge of visibility

Expected Results:
The font and icons size readable without the need to use a magnifying glass


Reproducible: Always


User Profile Reset: No

Additional Info:
I wrote a script that can automatically implement a solution I found online. I
don't know if it's optimal, but it allows me to easily make LibreOffice usable.
See below.
----------------------------------------
#!/bin/bash

working_directory='/usr/share/applications/'
echo "Working directory: $working_directory"

# Files for change
#
# libreoffice-calc.desktop
# libreoffice-impress.desktop
# libreoffice-startcenter.desktop
# libreoffice-draw.desktop
# libreoffice-math.desktop
# libreoffice-writer.desktop

#Run as root
if [ $(id -u) -ne 0 ]
  then echo Please run this script as root or using sudo!
  exit
fi

# Looking for files to change
files_for_change=`ls $working_directory | grep .desktop$ | grep ^libreoffice-`

#Processing
# Find: Exec=libreoffice ...
# Replace with: Exec=env QT_QPA_PLATFORM=xcb QT_SCALE_FACTOR=1 libreoffice

for file in $files_for_change; do
    whole_file_name=$working_directory$file
    echo "Processing file: $whole_file_name"
    echo -e "\tCreating backup: $whole_file_name.orig"
    cp -n $whole_file_name $whole_file_name.orig
    echo -e "\tChanging file: $whole_file_name"
    sed -i 's/^Exec\=libreoffice/Exec=env QT_QPA_PLATFORM=xcb QT_SCALE_FACTOR=1
libreoffice/' $whole_file_name
done

echo "DONE"

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to