Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#79484 - [libreoffice-fresh] Font size issues when editing a cell

Attached to Project: Arch Linux
Opened by Luc (iq2luc) - Sunday, 27 August 2023, 08:49 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 28 August 2023, 06:56 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description
-----------

Version 7.6.0.3 has a nasty upstream bug that makes Calc render text with wrong font size in multi-line cells (it also happens for single line cells but not as bad).
Saving and re-opening the document file exacerbates the issue (fonts look weirdly small and editing the text in the cells makes it even smaller / barely visible).

See upstream bug https://bugs.documentfoundation.org/show_bug.cgi?id=156932.

Additional info
---------------

* package version: extra/libreoffice-fresh 7.6.0-1
* link to upstream bugs report: https://bugs.documentfoundation.org/show_bug.cgi?id=156932 and https://bugs.documentfoundation.org/show_bug.cgi?id=156209

Steps to reproduce
-------------------

Note: all mentioned steps are visible in this animated PNG file: https://bug-attachments.documentfoundation.org/attachment.cgi?id=189165

1. Create a new Calc document
2. Notice the default font size: (e.g. 10 pt)
3. Double-click a cell to enter edit mode - notice the font size changed (e.g. 17.6 pt)
4. Write a line of text in the cell and before committing the content notice the wrong font size (e.g. 17.6 pt)
5. Commit the content of the cell and notice the font size for the cell while not in edit mode is correct (e.g. 10 pt)
6. Enter in edit mode again in the same cell, notice the wrong font size again (e.g. 17. 6 pt)

7. Double-click another cell to enter edit mode - notice the font size changed (e.g. 17.6 pt)
8. Write a line of text in the cell, do not commit the content yet
9. Press Ctrl+Enter to start a second line of text in the cell, do not commit the content yet
10. Select first line of text with the mouse and set the font size to 10 pt - notice how the text is rendered at much smaller size (not 10 pt)
11. Select the second line of text with the mouse and set the font size to 8 pt - notice how the text is rendered at much smaller size (not 8 pt)
12. Commit the cell (via pressing Enter key or clicking another cell etc.) and notice the font size for the cell while not in edit mode is correct (10 pt for the first text line and 8 pt for the second text line)
13. Save and close the document
14. Open the document again
15. Without entering cell edit mode notice the following:
15.1. The cell with a single line of text is rendered correctly at 10 pt
15.2. The cell with two lines of text is rendered incorrectly (much smaller than 10 pt and 8pt)
16. Double-click the cell with two lines of text to enter edit mode and notice the following:
16.1. The text for both lines are rendered even smaller now (barely visible)
16.2. Click the first text line and notice the font size is displayed as 5.7 pt instead of the correct value of 10 pt
16.2. Click the second line of text and notice the font size is displayed as 4.5 pt instead of the correct value of 8 pt

Suggested patch for fixing the issue
------------------------------------

The problem was fixed by recompiling libreoffice from 7.6.0.3 source + only the attached patch (copied from https://gerrit.libreoffice.org/c/core/+/155560).

Considering the impact of this bug, is it possible for Archlinux dev team to include the above patch in a new 'libreoffice-fresh' package version until a new upstream version is released?

Thank you.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Monday, 28 August 2023, 06:56 GMT
Reason for closing:  Fixed
Additional comments about closing:  7.6.0-2
Comment by Luc (iq2luc) - Sunday, 27 August 2023, 08:58 GMT
Example of a PKGBUILD used for fixing the issue, based on 'extra/libreoffice-fresh 7.6.0-1'.
   PKGBUILD (18.9 KiB)

Loading...