Bug 132895 - FILEOPEN PPTX: Font size too small for autoresize textbox with empty paragraph
Summary: FILEOPEN PPTX: Font size too small for autoresize textbox with empty paragraph
Status: RESOLVED DUPLICATE of bug 122023
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
4.1 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pptx
Depends on:
Blocks: PPTX-Paragraph PPTX-Textbox
  Show dependency treegraph
 
Reported: 2020-05-09 21:37 UTC by Alvaro Segura
Modified: 2023-08-25 11:54 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample file where this behavior appears (35.20 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2020-05-09 21:39 UTC, Alvaro Segura
Details
Comparison of PowerPoint vs Impress rendering (15.28 KB, image/png)
2020-05-09 21:39 UTC, Alvaro Segura
Details
Sample saved as PPT in PowerPoint (125.00 KB, application/vnd.ms-powerpoint)
2020-10-21 02:10 UTC, Aron Budea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alvaro Segura 2020-05-09 21:37:51 UTC
Description:
Importing a PPTX where some large text has font size 28, appears very small, and indicates font size 9.6.

Surprisingly, If I manually change the size to 28 with the drop-down list, it still appears small and the size indicated is 8.6! Changing it to 40, the final font size indicated is 11.6. I will attach a file showing this.

Steps to Reproduce:
Steps described in the description above.

Actual Results:
Results described in the description above.

Expected Results:
The same or very similar rendering to that of Power Point.


Reproducible: Always


User Profile Reset: No



Additional Info:
-
Comment 1 Alvaro Segura 2020-05-09 21:39:02 UTC
Created attachment 160574 [details]
Sample file where this behavior appears
Comment 2 Alvaro Segura 2020-05-09 21:39:27 UTC
Created attachment 160575 [details]
Comparison of PowerPoint vs Impress rendering
Comment 3 Alvaro Segura 2020-05-09 21:43:51 UTC
Seen in LO 6.x and 7.0alpha
Comment 4 Xisco Faulí 2020-05-11 10:22:08 UTC
Reproduced in

Version: 7.0.0.0.alpha1+
Build ID: 86bc13248c1d9f63b10aac304bdf0361d1dcc47f
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Version: 5.2.0.0.alpha1+
Build ID: 5b168b3fa568e48e795234dc5fa454bf24c9805e
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; 
Locale: ca-ES (ca_ES.UTF-8)

Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e

Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
Comment 5 Aron Budea 2020-10-21 02:10:02 UTC
Created attachment 166561 [details]
Sample saved as PPT in PowerPoint

Curiously the same content looks fine if it's in PPT format (saved in PowerPoint).
Comment 6 NISZ LibreOffice Team 2021-01-21 16:43:09 UTC
This is an autoresize textbox. Also it contains an empty paragraph before the Main title and two after it.
PP seems to ignore more than 1 empty paragraphs (in this particular case at least) when calculating font size, while Impress considers all of them equally.

PP: No empty para = 31 pt; 1 or more empty para = 28 pt font.
Impress: No empty para = 31 pt; 1 empty para = 18.8 pt; 2 empty para = 12.6 pt; 3 empty para = 9.6 pt font.
Comment 7 QA Administrators 2023-01-26 03:23:52 UTC Comment hidden (obsolete)
Comment 8 Alvaro Segura 2023-01-26 21:23:14 UTC
The bug is still present in LO 7.4.5

However, as someone commented (comment 6), there are 1 empty paragraph before the text and 2 after. If I delete those then the text size appears correct. As they said, seems PPT ignore those. In fact the box has the "compress overflow text" option but it is not applied (in my old PPT version).




Version: 7.4.5.1 (x64) / LibreOffice Community
Build ID: 9c0871452b3918c1019dde9bfac75448afc4b57f
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: threaded
Comment 9 Gabor Kelemen (allotropia) 2023-08-25 11:54:07 UTC
This example has Title type placeholders with "Shrink text on overflow" set. This makes the "Main title" text in PP resize from 31 pt to 28, or 10%. Impress on the other hand reduces font size as much as needed, including the several empty paragraphs.
I think this is the same core issue as in bug 122023.

*** This bug has been marked as a duplicate of bug 122023 ***