Bug 154095 - Vertically centering large fonts in table not working
Summary: Vertically centering large fonts in table not working
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.1.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Tables-Alignment
  Show dependency treegraph
 
Reported: 2023-03-09 14:49 UTC by Frasier Crane
Modified: 2023-03-23 20:00 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Correct placement in Word (3.60 KB, image/jpeg)
2023-03-09 14:50 UTC, Frasier Crane
Details
Wrong placement in opened docx (3.27 KB, image/jpeg)
2023-03-09 14:50 UTC, Frasier Crane
Details
Wrong placement in new Writer doc (3.83 KB, image/jpeg)
2023-03-09 14:51 UTC, Frasier Crane
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frasier Crane 2023-03-09 14:49:47 UTC
Description:
When I load a Word document with a table, most of the cells look ok. in some however, the text is not vertically centered but placed much too low. See the attachments "correct.jpg" and "wrong.jpg": even selecting the text does not work correctly - the selection box is drawn as if it was a small font (although it's Calibri 18 pt). When resizing the row to "fit", it looks ok, but the row is much to high. Selecting 0,8 cm for the row height produces the incorrectly positioned text.

When I create a new document with Writer, then create a table, write some text in it, set the table borders to 0, select vertical center from the bottom toolbar and a large font, the text again is written much too low instead of vertically centered! This time, the selection is correct, but the text is not (see "wrong new.jpg").

It seems that selecting custom row sizes with large fonts is completely broken in Writer which makes it generally unusable for decent layouts...

Steps to Reproduce:
1. Open Writer
2. Create Table
3. Set Table borders to 0
4. Set vertical center for table
5. Select large font (e.g. Calibri 25pt)
6. Write "Test" in a cell
7. Select "Size -> Row Height" from the context menu
8. Uncheck "Fit to size" and set height to "0,8 cm"


Actual Results:
Text is not centered vertically but written much too low.

Expected Results:
Vertically centered text.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 32; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win
Locale: de-AT (en_AT); UI: en-US
Calc: CL threaded
Comment 1 Frasier Crane 2023-03-09 14:50:17 UTC
Created attachment 185861 [details]
Correct placement in Word
Comment 2 Frasier Crane 2023-03-09 14:50:41 UTC
Created attachment 185862 [details]
Wrong placement in opened docx
Comment 3 Frasier Crane 2023-03-09 14:51:06 UTC
Created attachment 185863 [details]
Wrong placement in new Writer doc
Comment 4 Dieter 2023-03-23 20:00:21 UTC
I confirm it with steps from comment 0 and

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b5c3a7502f7ff6ccf0f829c1f3a2ba50b8584c41
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (de_DE); UI: en-GB
Calc: CL threaded