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: NEW
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: 2021-01-25 09:55 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:
Regression By:


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.