Bug 163590 - Reduce line spacing when doing autofitting of text to shape
Summary: Reduce line spacing when doing autofitting of text to shape
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
Depends on:
Blocks: Autofit
  Show dependency treegraph
 
Reported: 2024-10-23 12:57 UTC by Gabor Kelemen (allotropia)
Modified: 2024-11-07 03:15 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file from PowerPoint 2016 (44.34 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2024-10-23 12:57 UTC, Gabor Kelemen (allotropia)
Details
Screenshot of the issue in PowerPoint (94.11 KB, image/png)
2024-10-23 13:03 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2024-10-23 12:57:36 UTC
Created attachment 197203 [details]
Example file from PowerPoint 2016

When doing autofitting of text to the default placeholder, PowerPoint does not only reduce font size, but also reduces the line spacing value of the paragraphs as first step, skipping font size reduction.

Copying this behavior would be nice in order to have a similar look when editing slides, with better readable (same font size) paragraphs when only one extra paragraph is needed.

1. Open attached document in PP
2. Check the paragraph line spacing values on the individual slides
3. Add a new paragraph to each of the slides
4. Check the paragraph line spacing values on the individual slides
-> See that the line spacing values (Multiple, Single, 1.5, Double) have been reduced by 0.1 or 0.2. 
Reduction seems to depend also on the above-below spacing values too: if it is 0, reduction seems to be only 0.1. (this part of the algorithm is somewhat hazy to me still)
The font size on the other hand is not yet reduced.
-> In case of the Exact value, the line spacing is not reduced.

Doing the same in Impress leads to reduction of the font size only.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: dd41459378bca78a18f32e61bfac77aa48fabb8d
CPU threads: 14; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: default
Comment 1 Gabor Kelemen (allotropia) 2024-10-23 13:03:05 UTC
Created attachment 197204 [details]
Screenshot of the issue in PowerPoint

Third slide demonstrates 1.5 lines of line spacing used, after adding a paragraph it is reduced to 1.3 lines.

Other slides demonstrate 0.5, 0.9, 1, 1.5, 1.7, 2 lines behavior.

Not yet tested: one slide with different line spacing values set on different paragraphs.